blob: bccc89761056f3d9ac08a2fc2c95468d44270786 [file] [log] [blame]
Joe Fernandez306f1ce2015-05-01 12:51:21 -07001page.title=Samples
Dirk Doughertyea1f6fb2015-05-26 20:31:12 -07002page.image=images/cards/samples-new_2x.png
Joe Fernandez306f1ce2015-05-01 12:51:21 -07003@jd:body
4
5<p>
Luan Nguyen16944012015-05-27 08:51:32 -07006 The following code samples are provided for the M Developer Preview. To download
7 the samples in Android Studio, select the <b>File > Import Samples</b> menu option.
Joe Fernandez306f1ce2015-05-01 12:51:21 -07008</p>
9
Dirk Dougherty10d44b72015-05-23 14:46:57 -070010<img src="{@docRoot}images/cards/card-google-cloud-messaging_16-9_2x" class="figure">
Joe Fernandez306f1ce2015-05-01 12:51:21 -070011<p class="note">
12 <strong>Note:</strong> These downloadable projects are designed
13 for use with Gradle and Android Studio.
14</p>
15
16
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070017<h3 id="RuntimePermissions">Runtime Permissions</h3>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070018
19<p>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070020 Android M changes the way system permissions work. Users are asked to approve permission
21 requests at runtime instead of during installation. This sample shows how to request these
22 permissions.
Joe Fernandez306f1ce2015-05-01 12:51:21 -070023</p>
24
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070025<p><a href="https://github.com/googlesamples/android-RuntimePermissions">Get it on GitHub</a></p>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070026
Luan Nguyen298b0f22015-05-27 11:51:14 -070027<h3 id="ConfirmCredentials">Confirm Credential</h3>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070028
29<p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070030 This sample demonstrates how to use device credentials as an authentication method in your app.
Joe Fernandez306f1ce2015-05-01 12:51:21 -070031</p>
32
Luan Nguyen298b0f22015-05-27 11:51:14 -070033<p><a href="https://github.com/googlesamples/android-ConfirmCredential">Get it on
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070034GitHub</a></p>
35
Luan Nguyen98ebcef2015-05-12 13:21:34 -070036<h3 id="FingerprintDialog">Fingerprint Dialog</h3>
37
38<p>
39 This sample demonstrates how to recognize registered fingerprints to authenticate the user
40 in your app.
41</p>
42
43<p><a href="https://github.com/googlesamples/android-FingerprintDialog">Get it on GitHub</a></p>
44
Luan Nguyen16944012015-05-27 08:51:32 -070045<h3 id="AutomaticBackup">Auto Backup for Apps</h3>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070046
47<p>
48 Android M introduces automatic backup for app settings. This sample demonstrates how to add
49 filtering rules to an app in order to manage settings backup.
50</p>
51
Luan Nguyen16944012015-05-27 08:51:32 -070052<p><a href="https://github.com/googlesamples/android-AutoBackupForApps">Get it on GitHub</a></p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070053
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070054<h3 id="VoiceCamera">Voice Camera</h3>
55
56<p>
57 This sample demonstrates how to implement the "OK Google, take a selfie" voice command and confirm
58 the user intent with the <code>VoiceInteraction</code> API.
59</p>
60
61<p><a href="https://github.com/googlesamples/android-VoiceCamera">Get it on GitHub</a></p>
62
Luan Nguyen98ebcef2015-05-12 13:21:34 -070063<h3 id="CameraRaw">Camera 2 Raw</h3>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070064
65<p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070066 Demonstrates how to use the <code>Camera2</code> API to capture RAW camera buffers and save
67 them as <code>DNG</code> files.
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070068</p>
69
Luan Nguyen98ebcef2015-05-12 13:21:34 -070070<p><a href="https://github.com/googlesamples/android-Camera2Raw">Get it on GitHub</a></p>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070071
Luan Nguyen16944012015-05-27 08:51:32 -070072<h3 id="ActiveNotification">Active Notifications</h3>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070073
74<p>
75 This sample demonstrates how the
76 <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a>
77 can tell you how many notifications your app is currently showing.
78</p>
79
Luan Nguyen16944012015-05-27 08:51:32 -070080<p><a href="https://github.com/googlesamples/android-ActiveNotifications">Get it on GitHub</a></p>