blob: 7d47e0ed0e04bac7508966190e4ba7c4f2105c53 [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
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 Fernandeza06ac3a2015-05-15 15:42:17 -070016<h3 id="RuntimePermissions">Runtime Permissions</h3>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070017
18<p>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070019 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 Fernandez306f1ce2015-05-01 12:51:21 -070022</p>
23
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070024<p><a href="https://github.com/googlesamples/android-RuntimePermissions">Get it on GitHub</a></p>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070025
Luan Nguyen298b0f22015-05-27 11:51:14 -070026<h3 id="ConfirmCredentials">Confirm Credential</h3>
Joe Fernandez306f1ce2015-05-01 12:51:21 -070027
28<p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070029 This sample demonstrates how to use device credentials as an authentication method in your app.
Joe Fernandez306f1ce2015-05-01 12:51:21 -070030</p>
31
Luan Nguyen298b0f22015-05-27 11:51:14 -070032<p><a href="https://github.com/googlesamples/android-ConfirmCredential">Get it on
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070033GitHub</a></p>
34
Luan Nguyen98ebcef2015-05-12 13:21:34 -070035<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
Luan Nguyen16944012015-05-27 08:51:32 -070044<h3 id="AutomaticBackup">Auto Backup for Apps</h3>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070045
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
Luan Nguyen16944012015-05-27 08:51:32 -070051<p><a href="https://github.com/googlesamples/android-AutoBackupForApps">Get it on GitHub</a></p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070052
Luan Nguyen98ebcef2015-05-12 13:21:34 -070053<h3 id="CameraRaw">Camera 2 Raw</h3>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070054
55<p>
Luan Nguyen98ebcef2015-05-12 13:21:34 -070056 Demonstrates how to use the <code>Camera2</code> API to capture RAW camera buffers and save
57 them as <code>DNG</code> files.
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070058</p>
59
Luan Nguyen98ebcef2015-05-12 13:21:34 -070060<p><a href="https://github.com/googlesamples/android-Camera2Raw">Get it on GitHub</a></p>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070061
Luan Nguyen59046282015-05-27 11:58:52 -070062<h3 id="ActiveNotification">Active Notification</h3>
Joe Fernandeza06ac3a2015-05-15 15:42:17 -070063
64<p>
65 This sample demonstrates how the
66 <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a>
67 can tell you how many notifications your app is currently showing.
68</p>
69
Luan Nguyen16944012015-05-27 08:51:32 -070070<p><a href="https://github.com/googlesamples/android-ActiveNotifications">Get it on GitHub</a></p>