page.title=Samples page.image=images/cards/card-samples_16-9_2x.png @jd:body
The following code samples are provided for the M Developer Preview. You can download them in the Android SDK Manager under the SDK Samples component for the M Developer Preview.
Note: These downloadable projects are designed for use with Gradle and Android Studio.
Android M changes the way system permissions work. Users are asked to approve permission requests at runtime instead of during installation. This sample shows how to request these permissions.
This sample demonstrates how to use device credentials as an authentication method in your app.
This sample demonstrates how to recognize registered fingerprints to authenticate the user in your app.
Android M introduces automatic backup for app settings. This sample demonstrates how to add filtering rules to an app in order to manage settings backup.
This sample demonstrates how to implement the "OK Google, take a selfie" voice command and confirm
the user intent with the VoiceInteraction
API.
Demonstrates how to use the Camera2
API to capture RAW camera buffers and save
them as DNG
files.
This sample demonstrates how the
NotificationManager
can tell you how many notifications your app is currently showing.
This sample demonstrates how to use the NativeAudio
APIs to demonstrate low-latency
audio processing.