Android 6.0 示例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
下载或浏览示例项目,开始使用 Android 6.0 API(API 级别 23)。您可以直接从 Android Studio 下载这些示例,只需依次选择 File > New > Import Sample 菜单选项,然后选择所需的示例即可。
注意:这些可下载的项目旨在与 Gradle 和 Android Studio 配合使用。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],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."]]