Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 1 | page.title=Samples |
| 2 | |
| 3 | @jd:body |
| 4 | |
| 5 | <p> |
| 6 | The following code samples are provided for the M Developer Preview. You can download them in the |
| 7 | Android SDK Manager under the <b>SDK Samples</b> component for the M Developer Preview. |
| 8 | </p> |
| 9 | |
| 10 | <p class="note"> |
| 11 | <strong>Note:</strong> These downloadable projects are designed |
| 12 | for use with Gradle and Android Studio. |
| 13 | </p> |
| 14 | |
| 15 | |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 16 | <h3 id="RuntimePermissions">Runtime Permissions</h3> |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 17 | |
| 18 | <p> |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 19 | Android M changes the way system permissions work. Users are asked to approve permission |
| 20 | requests at runtime instead of during installation. This sample shows how to request these |
| 21 | permissions. |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 22 | </p> |
| 23 | |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 24 | <p><a href="https://github.com/googlesamples/android-RuntimePermissions">Get it on GitHub</a></p> |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 25 | |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 26 | <h3 id="ConfirmCredentials">Confirm Device Credentials</h3> |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 27 | |
| 28 | <p> |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 29 | This sample demonstrates how to use device credentials as an authentication method in your app. |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 30 | </p> |
| 31 | |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 32 | <p><a href="https://github.com/googlesamples/android-ConfirmDeviceCredentials">Get it on |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 33 | GitHub</a></p> |
| 34 | |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 35 | <h3 id="FingerprintDialog">Fingerprint Dialog</h3> |
| 36 | |
| 37 | <p> |
| 38 | This sample demonstrates how to recognize registered fingerprints to authenticate the user |
| 39 | in your app. |
| 40 | </p> |
| 41 | |
| 42 | <p><a href="https://github.com/googlesamples/android-FingerprintDialog">Get it on GitHub</a></p> |
| 43 | |
| 44 | <h3 id="AutomaticBackup">Automatic Backup</h3> |
| 45 | |
| 46 | <p> |
| 47 | Android M introduces automatic backup for app settings. This sample demonstrates how to add |
| 48 | filtering rules to an app in order to manage settings backup. |
| 49 | </p> |
| 50 | |
| 51 | <p><a href="https://github.com/googlesamples/android-AutomaticBackup">Get it on GitHub</a></p> |
| 52 | |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 53 | <h3 id="VoiceCamera">Voice Camera</h3> |
| 54 | |
| 55 | <p> |
| 56 | This sample demonstrates how to implement the "OK Google, take a selfie" voice command and confirm |
| 57 | the user intent with the <code>VoiceInteraction</code> API. |
| 58 | </p> |
| 59 | |
| 60 | <p><a href="https://github.com/googlesamples/android-VoiceCamera">Get it on GitHub</a></p> |
| 61 | |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 62 | <h3 id="CameraRaw">Camera 2 Raw</h3> |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 63 | |
| 64 | <p> |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 65 | Demonstrates how to use the <code>Camera2</code> API to capture RAW camera buffers and save |
| 66 | them as <code>DNG</code> files. |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 67 | </p> |
| 68 | |
Luan Nguyen | 98ebcef | 2015-05-12 13:21:34 -0700 | [diff] [blame^] | 69 | <p><a href="https://github.com/googlesamples/android-Camera2Raw">Get it on GitHub</a></p> |
Joe Fernandez | a06ac3a | 2015-05-15 15:42:17 -0700 | [diff] [blame] | 70 | |
| 71 | <h3 id="ActiveNotification">Active Notification</h3> |
| 72 | |
| 73 | <p> |
| 74 | This sample demonstrates how the |
| 75 | <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a> |
| 76 | can tell you how many notifications your app is currently showing. |
| 77 | </p> |
| 78 | |
| 79 | <p><a href="https://github.com/googlesamples/android-ActiveNotification">Get it on GitHub</a></p> |
| 80 | |
| 81 | <h3 id="VoiceSynthesizer">Voice Synthesizer</h3> |
| 82 | |
| 83 | <p> |
| 84 | This sample demonstrates how to use the <code>NativeAudio</code> APIs to demonstrate low-latency |
| 85 | audio processing. |
| 86 | </p> |
| 87 | |
| 88 | <p><a href="https://github.com/googlesamples/android-VoiceSynthesizer">Get it on GitHub</a></p> |
Joe Fernandez | 306f1ce | 2015-05-01 12:51:21 -0700 | [diff] [blame] | 89 | |
| 90 | |