blob: eab0908b2cf6e38ca44062c838b210be8a7183ae [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>
Joe Fernandez561db662016-03-03 19:02:17 -08007 The following code samples are provided for the N Developer Preview. To
8 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>
24 <a href="https://github.com/googlesamples/android-MultiwindowPlayground">
25 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080026</p>
27
Dirk Dougherty5748bc42016-02-06 18:24:32 -080028
Joe Fernandez561db662016-03-03 19:02:17 -080029<h3 id="notifications">Notifications</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080030<p>
Joe Fernandez561db662016-03-03 19:02:17 -080031 This sample is updated to demonstrates how to take advantage of new
32 notifications features available in the N Developer Preview.
33</p>
34<p>
35 <a href="https://github.com/googlesamples/android-Notifications">
36 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080037</p>
38
Dirk Dougherty5748bc42016-02-06 18:24:32 -080039
Joe Fernandez561db662016-03-03 19:02:17 -080040<h3 id="jobsched">JobScheduler</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080041<p>
Joe Fernandez561db662016-03-03 19:02:17 -080042 This sample demonstrates how to use the JobScheduler API to schedule
43 background tasks when certain conditions apply, such as network or charging
44 state.
45</p>
46<p>
47 <a href="https://github.com/googlesamples/android-JobScheduler">
48 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080049</p>
50
Dirk Dougherty5748bc42016-02-06 18:24:32 -080051
Takeshi Hagikuraa2d470b2016-03-08 13:03:20 +090052<h3 id="fbe">Direct Boot</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080053<p>
Joe Fernandez561db662016-03-03 19:02:17 -080054 This sample demonstrates how to store and access data in a device encrypted
55 storage which is always available while the device is booted.
56</p>
57<p>
Takeshi Hagikuraa2d470b2016-03-08 13:03:20 +090058 <a href="https://github.com/googlesamples/android-DirectBoot">
Joe Fernandez561db662016-03-03 19:02:17 -080059 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080060</p>
61
Dirk Dougherty5748bc42016-02-06 18:24:32 -080062
Joe Fernandez561db662016-03-03 19:02:17 -080063<h3 id="sda">Scoped Directory Access</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080064<p>
Joe Fernandez561db662016-03-03 19:02:17 -080065 This sample demonstrates how to read and write data from specific
66 directories, while requiring fewer permissions.
67</p>
68<p>
69 <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess">
70 Get it on GitHub</a>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080071</p>
72
Dirk Dougherty5748bc42016-02-06 18:24:32 -080073
Joe Fernandez561db662016-03-03 19:02:17 -080074<h3 id="AutomaticBackup">Drag and Drop</h3>
Dirk Dougherty5748bc42016-02-06 18:24:32 -080075<p>
Joe Fernandez561db662016-03-03 19:02:17 -080076 This sample demonstrates how to use drag and drop user interface feature
77 between windows, when using a multi-window view.
Dirk Dougherty5748bc42016-02-06 18:24:32 -080078</p>
Joe Fernandez561db662016-03-03 19:02:17 -080079<p>
80 <a href="https://github.com/googlesamples/android-DragAndDrop">
81 Get it on GitHub</a>
Takeshi Hagikuraa2d470b2016-03-08 13:03:20 +090082</p>