ตัวอย่าง Android 6.0
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดาวน์โหลดหรือเรียกดูโปรเจ็กต์ตัวอย่างเพื่อเริ่มต้นใช้งาน API ของ Android 6.0 (API ระดับ 23) คุณดาวน์โหลดตัวอย่างเพลงจาก Android Studio ได้โดยตรง เพียงเลือกตัวเลือกเมนูไฟล์ > ใหม่ > นําเข้าตัวอย่างเพลง แล้วเลือกตัวอย่างเพลงที่ต้องการ
หมายเหตุ: โปรเจ็กต์ที่ดาวน์โหลดได้เหล่านี้ออกแบบมาเพื่อใช้กับ Gradle และ Android Studio
-
Camera2Basic:
ตัวอย่างนี้แสดงวิธีใช้
Camera2
API เพื่อจับภาพบัฟเฟอร์ของกล้อง RAW และบันทึกเป็นไฟล์ DNG
- DeviceOwner:
ตัวอย่างนี้แสดงวิธีใช้ฟีเจอร์เจ้าของอุปกรณ์เพื่อจัดการและกำหนดค่าอุปกรณ์
-
การตรวจสอบสิทธิ์ด้วยข้อมูลไบโอเมตริก: ตัวอย่างนี้แสดงวิธีจดจำลายนิ้วมือที่ลงทะเบียนเพื่อตรวจสอบสิทธิ์ผู้ใช้แอป
-
MidiScope:
ตัวอย่างนี้แสดงวิธีใช้ MIDI API เพื่อรับและประมวลผลสัญญาณ MIDI ที่มาจากอุปกรณ์อินพุตที่เชื่อมต่อ
-
MidiSynth:
ตัวอย่างนี้แสดงวิธีใช้ MIDI API เพื่อรับและเล่นข้อความ MIDI ที่มาจากอุปกรณ์อินพุตที่เชื่อมต่อ
-
การจัดสรร NFC:
ตัวอย่างนี้แสดงวิธีใช้ NFC เพื่อจัดสรรอุปกรณ์อื่นๆ ให้กับเจ้าของอุปกรณ์ที่เฉพาะเจาะจง
-
RuntimePermissions:
ตัวอย่างนี้แสดงสิทธิ์รันไทม์ที่ใช้ได้ใน Android 6.0 (API ระดับ 23) ขึ้นไป แสดงบันทึกบนหน้าจอเพื่อติดตามการดำเนินการ หากดำเนินการในอุปกรณ์ Android 6.0 แอปจะแสดงตัวเลือกเพิ่มเติมในการเข้าถึงรายชื่อติดต่อโดยใช้สิทธิ์ที่ไม่บังคับสำหรับ Android 6.0 เท่านั้น
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Android 6.0 Samples\n\nDownload or browse sample projects to get started with Android 6.0\nAPIs (API level 23). You can download the samples\ndirectly from Android Studio --- just select the **File \\\u003e New \\\u003e Import\nSample** menu option and pick the sample you want.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n- [Camera2Basic](https://github.com/android/camera-samples/tree/main/Camera2Basic#readme): This sample demonstrates how to use the `Camera2` API to capture RAW camera buffers and save them as `DNG` files.\n- [DeviceOwner](https://github.com/googlearchive/android-DeviceOwner): This sample demonstrates how to use the device owner features to manage and configure a device.\n- [Biometric\n Authentication](https://github.com/android/security-samples/tree/main/BiometricAuthentication/#readme): This sample demonstrates how to recognize registered fingerprints to authenticate your app's user.\n- [MidiScope](https://github.com/android/media-samples/tree/main/MidiScope): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and process MIDI signals coming from an attached input device.\n- [MidiSynth](https://github.com/android/media-samples/tree/main/MidiSynth): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and play MIDI messages coming from an attached input device.\n- [NFC Provisioning](https://github.com/googlearchive/android-NfcProvisioning): This sample demonstrates how to use NFC to provision other devices with a specific device owner.\n- [RuntimePermissions](https://github.com/googlesamples/android-RuntimePermissions): This sample shows runtime permissions available in Android 6.0 (API level 23) and higher. Display the log on screen to follow the execution. If executed on an Android 6.0 device, the app displays an additional option to access contacts using an 6.0-only optional permission."]]