• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1page.title=Android 6.0 Samples
2page.image=images/cards/card-build_16x9_2x.png
3page.tags=marshmallow, samples
4meta.tags=marshmallow,androidm,samples
5page.metaDescription=Code to get your started with Android 6.0 APIs.
6@jd:body
7
8<p>
9  Download or browse sample projects to get started with Android 6.0
10  APIs (API level 23). You can download the samples
11  directly from Android Studio &mdash; just select the <b>File > Import
12  Samples</b> menu option and pick the sample you want.
13</p>
14
15<p class="note">
16  <strong>Note:</strong> These downloadable projects are designed
17   for use with Gradle and Android Studio.
18</p>
19
20<ul>
21<li id="ActiveNotification">
22<a href="{@docRoot}samples/ActiveNotifications/index.html">Active Notification</a>: This sample demonstrates how the
23  <a href="{@docRoot}reference/android/app/NotificationManager.html"><code>NotificationManager</code></a>
24  can tell you how many notifications your app is currently showing.
25</li>
26
27<li id="AutomaticBackup">
28<a href="{@docRoot}samples/AutoBackupForApps/index.html">Auto Backup for Apps</a>: Android 6.0
29(API level 23) introduces automatic backup for app settings. This sample demonstrates how to add
30filtering rules to an app in order to manage settings backup.
31</li>
32
33<li id="CameraRaw">
34<a href="{@docRoot}samples/Camera2Raw/index.html">Camera 2 Raw</a>: This sample demonstrates how to
35use the <code>Camera2</code> API to capture RAW camera buffers and save them as
36<code>DNG</code> files.
37</li>
38
39<li id="ConfirmCredential">
40  <a href="{@docRoot}samples/ConfirmCredential/index.html">Confirm Credential</a>: This sample
41  demonstrates how to use device credentials as an authentication method in your app.
42</li>
43
44<li id="DeviceOwner"><a href="{@docRoot}samples/DeviceOwner/index.html">Device Owner</a>: This
45  sample demonstrates how to use the device owner features to manage and
46  configure a device.
47</li>
48
49<li id="DirectShare"><a href="{@docRoot}samples/DirectShare/index.html">Direct Share</a>:
50  This sample demonstrates how to provide the
51  <a href="{@docRoot}about/versions/marshmallow/android-6.0.html#direct-share">Direct Share</a>
52  feature. The app shows some options directly in the list of share intent candidates.
53</li>
54
55<li id="FingerprintDialog">
56  <a href="{@docRoot}samples/FingerprintDialog/index.html">Fingerprint
57  Dialog</a>:
58  This sample demonstrates how to recognize registered fingerprints to
59  authenticate your app's user.
60</li>
61
62<li id="MidiScope">
63  <a href="{@docRoot}samples/MidiScope/index.html">MidiScope</a>:
64  This sample demonstrates how to use the <a href=
65  "{@docRoot}reference/android/media/midi/package-summary.html">MIDI API</a> to
66  receive and process MIDI signals coming from an attached input device.
67</li>
68
69<li id="MidiSynth">
70  <a href="{@docRoot}samples/MidiSynth/index.html">MidiSynth</a>:
71  This sample demonstrates how to use the <a href=
72  "{@docRoot}reference/android/media/midi/package-summary.html">MIDI API</a> to
73  receive and play MIDI messages coming from an attached input device.
74</li>
75
76<li id="NfcProvisioning"><a href="{@docRoot}samples/NfcProvisioning/index.html">NFC Provisioning</a>:
77  This sample demonstrates how to use NFC to provision other devices with a
78  specific device owner.
79</li>
80
81<li id="RuntimePermissions">
82  <a href=
83  "{@docRoot}samples/RuntimePermissions/index.html">RuntimePermissions</a>:
84  This sample shows runtime permissions available in Android 6.0 (API level 23)
85  and higher. Display the log on screen to follow the execution. If executed on
86  an Android 6.0 device, the app displays an additional option to access
87  contacts using an 6.0-only optional permission.
88</li>
89</ul>