blob: de21b515b3eda00963c193ccfff507928e5676a4 [file] [log] [blame]
Dirk Dougherty5748bc42016-02-06 18:24:32 -08001page.title=Samples
Joe Fernandez561db662016-03-03 19:02:17 -08002page.tags="preview", "samples", "android"
Dirk Doughertya6495a922016-03-04 15:21:59 -08003page.image=images/cards/card-n-samples_2x.png
Dirk Dougherty5748bc42016-02-06 18:24:32 -08004@jd:body
5
6<p>
David Friedmanfffa8ac2016-03-07 22:13:29 -08007 The following code samples are provided for Android N. To
Joe Fernandez561db662016-03-03 19:02:17 -08008 download the samples in Android Studio, select the <b>File &gt; Import
9 Samples</b> menu option.
Dirk Dougherty5748bc42016-02-06 18:24:32 -080010</p>
11
12<p class="note">
13 <strong>Note:</strong> These downloadable projects are designed
14 for use with Gradle and Android Studio.
15</p>
16
17
Joe Fernandez561db662016-03-03 19:02:17 -080018<h3 id="mw">Multi-Window Playground</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080019<p>
Joe Fernandez561db662016-03-03 19:02:17 -080020 This sample demonstrates how to take advantage of multiple window
21 user interfaces with your app.
22</p>
23<p>
Joe Fernandez5bc83ac2016-03-07 20:42:04 -080024 <a href="https://github.com/googlesamples/android-MultiWindowPlayground">
Joe Fernandez561db662016-03-03 19:02:17 -080025 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080026</p>
27
Dirk Dougherty5748bc42016-02-06 18:24:32 -080028
Trevor Johns67c56712016-03-08 19:17:08 -080029<h3 id="an">Active Notifications</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080030<p>
Trevor Johns67c56712016-03-08 19:17:08 -080031 This is a pre-existing sample which shows a simple service that sends
32 notifications using NotificationCompat. Each unread conversation from a user
33 is sent as a distinct notification.
Joe Fernandez561db662016-03-03 19:02:17 -080034</p>
35<p>
Trevor Johns67c56712016-03-08 19:17:08 -080036 This sample has been updated to take advantage of new notification features
37 available in Android N.
38</p>
39<p>
40 <a href="https://github.com/googlesamples/android-ActiveNotifications">
Joe Fernandez561db662016-03-03 19:02:17 -080041 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080042</p>
43
Dirk Dougherty5748bc42016-02-06 18:24:32 -080044
Trevor Johns67c56712016-03-08 19:17:08 -080045<h3 id="ms">Messaging Service</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080046<p>
Trevor Johns67c56712016-03-08 19:17:08 -080047 This is a pre-existing sample which demonstrates how to use
48 NotificationManager to tell how many notifications an application is currently
49 showing.
Joe Fernandez561db662016-03-03 19:02:17 -080050</p>
51<p>
Trevor Johns67c56712016-03-08 19:17:08 -080052 This sample has been updated to take advantage of new notification features
53 available in Android N.
54</p>
55<p>
56 <a href="https://github.com/googlesamples/android-MessagingService">
Joe Fernandez561db662016-03-03 19:02:17 -080057 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080058</p>
59
Dirk Dougherty5748bc42016-02-06 18:24:32 -080060
Takeshi Hagikuraa2d470b2016-03-08 13:03:20 +090061<h3 id="fbe">Direct Boot</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080062<p>
Joe Fernandez561db662016-03-03 19:02:17 -080063 This sample demonstrates how to store and access data in a device encrypted
64 storage which is always available while the device is booted.
65</p>
66<p>
Takeshi Hagikuraa2d470b2016-03-08 13:03:20 +090067 <a href="https://github.com/googlesamples/android-DirectBoot">
Joe Fernandez561db662016-03-03 19:02:17 -080068 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080069</p>
70
Dirk Dougherty5748bc42016-02-06 18:24:32 -080071
Joe Fernandez561db662016-03-03 19:02:17 -080072<h3 id="sda">Scoped Directory Access</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080073<p>
Joe Fernandez561db662016-03-03 19:02:17 -080074 This sample demonstrates how to read and write data from specific
75 directories, while requiring fewer permissions.
76</p>
77<p>
78 <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess">
79 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080080</p>