Loading docs/html/preview/samples.jd +48 −38 Original line number Diff line number Diff line page.title=Samples meta.tags="samples", "preview" page.tags="preview", "developer preview" page.image=images/cards/card-n-samples_2x.png page.tags="preview", "samples", "android" page.image=images/cards/samples-new_2x.png @jd:body <p> The following code samples are provided for the M Developer Preview. To download the samples in Android Studio, select the <b>File > Import Samples</b> menu option. The following code samples are provided for the N Developer Preview. To download the samples in Android Studio, select the <b>File > Import Samples</b> menu option. </p> <p class="note"> Loading @@ -15,58 +15,68 @@ page.image=images/cards/card-n-samples_2x.png </p> <h3 id="RuntimePermissions">Runtime Permissions</h3> <h3 id="mw">Multi-Window Playground</h3> <p> 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 take advantage of multiple window user interfaces with your app. </p> <p> <a href="https://github.com/googlesamples/android-MultiwindowPlayground"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-RuntimePermissions">Get it on GitHub</a></p> <h3 id="ConfirmCredentials">Confirm Credential</h3> <h3 id="notifications">Notifications</h3> <p> This sample demonstrates how to use device credentials as an authentication method in your app. This sample is updated to demonstrates how to take advantage of new notifications features available in the N Developer Preview. </p> <p> <a href="https://github.com/googlesamples/android-Notifications"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-ConfirmCredential">Get it on GitHub</a></p> <h3 id="FingerprintDialog">Fingerprint Dialog</h3> <h3 id="jobsched">JobScheduler</h3> <p> This sample demonstrates how to recognize registered fingerprints to authenticate the user in your app. This sample demonstrates how to use the JobScheduler API to schedule background tasks when certain conditions apply, such as network or charging state. </p> <p> <a href="https://github.com/googlesamples/android-JobScheduler"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-FingerprintDialog">Get it on GitHub</a></p> <h3 id="AutomaticBackup">Auto Backup for Apps</h3> <h3 id="fbe">File Based Encryption</h3> <p> 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 store and access data in a device encrypted storage which is always available while the device is booted. </p> <p> <a href="https://github.com/googlesamples/android-FileBasedEncryption"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-AutoBackupForApps">Get it on GitHub</a></p> <h3 id="CameraRaw">Camera 2 Raw</h3> <h3 id="sda">Scoped Directory Access</h3> <p> Demonstrates how to use the <code>Camera2</code> API to capture RAW camera buffers and save them as <code>DNG</code> files. This sample demonstrates how to read and write data from specific directories, while requiring fewer permissions. </p> <p> <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-Camera2Raw">Get it on GitHub</a></p> <h3 id="ActiveNotification">Active Notification</h3> <h3 id="AutomaticBackup">Drag and Drop</h3> <p> This sample demonstrates how the <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a> can tell you how many notifications your app is currently showing. This sample demonstrates how to use drag and drop user interface feature between windows, when using a multi-window view. </p> <p> <a href="https://github.com/googlesamples/android-DragAndDrop"> Get it on GitHub</a> </p> No newline at end of file <p><a href="https://github.com/googlesamples/android-ActiveNotifications">Get it on GitHub</a></p> Loading
docs/html/preview/samples.jd +48 −38 Original line number Diff line number Diff line page.title=Samples meta.tags="samples", "preview" page.tags="preview", "developer preview" page.image=images/cards/card-n-samples_2x.png page.tags="preview", "samples", "android" page.image=images/cards/samples-new_2x.png @jd:body <p> The following code samples are provided for the M Developer Preview. To download the samples in Android Studio, select the <b>File > Import Samples</b> menu option. The following code samples are provided for the N Developer Preview. To download the samples in Android Studio, select the <b>File > Import Samples</b> menu option. </p> <p class="note"> Loading @@ -15,58 +15,68 @@ page.image=images/cards/card-n-samples_2x.png </p> <h3 id="RuntimePermissions">Runtime Permissions</h3> <h3 id="mw">Multi-Window Playground</h3> <p> 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 take advantage of multiple window user interfaces with your app. </p> <p> <a href="https://github.com/googlesamples/android-MultiwindowPlayground"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-RuntimePermissions">Get it on GitHub</a></p> <h3 id="ConfirmCredentials">Confirm Credential</h3> <h3 id="notifications">Notifications</h3> <p> This sample demonstrates how to use device credentials as an authentication method in your app. This sample is updated to demonstrates how to take advantage of new notifications features available in the N Developer Preview. </p> <p> <a href="https://github.com/googlesamples/android-Notifications"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-ConfirmCredential">Get it on GitHub</a></p> <h3 id="FingerprintDialog">Fingerprint Dialog</h3> <h3 id="jobsched">JobScheduler</h3> <p> This sample demonstrates how to recognize registered fingerprints to authenticate the user in your app. This sample demonstrates how to use the JobScheduler API to schedule background tasks when certain conditions apply, such as network or charging state. </p> <p> <a href="https://github.com/googlesamples/android-JobScheduler"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-FingerprintDialog">Get it on GitHub</a></p> <h3 id="AutomaticBackup">Auto Backup for Apps</h3> <h3 id="fbe">File Based Encryption</h3> <p> 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 store and access data in a device encrypted storage which is always available while the device is booted. </p> <p> <a href="https://github.com/googlesamples/android-FileBasedEncryption"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-AutoBackupForApps">Get it on GitHub</a></p> <h3 id="CameraRaw">Camera 2 Raw</h3> <h3 id="sda">Scoped Directory Access</h3> <p> Demonstrates how to use the <code>Camera2</code> API to capture RAW camera buffers and save them as <code>DNG</code> files. This sample demonstrates how to read and write data from specific directories, while requiring fewer permissions. </p> <p> <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess"> Get it on GitHub</a> </p> <p><a href="https://github.com/googlesamples/android-Camera2Raw">Get it on GitHub</a></p> <h3 id="ActiveNotification">Active Notification</h3> <h3 id="AutomaticBackup">Drag and Drop</h3> <p> This sample demonstrates how the <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a> can tell you how many notifications your app is currently showing. This sample demonstrates how to use drag and drop user interface feature between windows, when using a multi-window view. </p> <p> <a href="https://github.com/googlesamples/android-DragAndDrop"> Get it on GitHub</a> </p> No newline at end of file <p><a href="https://github.com/googlesamples/android-ActiveNotifications">Get it on GitHub</a></p>