Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 1 | page.title=Samples |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 2 | page.tags="preview", "samples", "android" |
Dirk Dougherty | a6495a92 | 2016-03-04 15:21:59 -0800 | [diff] [blame] | 3 | page.image=images/cards/card-n-samples_2x.png |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 4 | @jd:body |
| 5 | |
| 6 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 7 | The following code samples are provided for the N Developer Preview. To |
| 8 | download the samples in Android Studio, select the <b>File > Import |
| 9 | Samples</b> menu option. |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 10 | </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 Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 18 | <h3 id="mw">Multi-Window Playground</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 19 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 20 | 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 Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 26 | </p> |
| 27 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 28 | |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 29 | <h3 id="notifications">Notifications</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 30 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 31 | 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 Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 37 | </p> |
| 38 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 39 | |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 40 | <h3 id="jobsched">JobScheduler</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 41 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 42 | 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 Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 49 | </p> |
| 50 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 51 | |
Takeshi Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame^] | 52 | <h3 id="fbe">Direct Boot</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 53 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 54 | 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 Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame^] | 58 | <a href="https://github.com/googlesamples/android-DirectBoot"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 59 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 60 | </p> |
| 61 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 62 | |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 63 | <h3 id="sda">Scoped Directory Access</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 64 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 65 | 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 Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 71 | </p> |
| 72 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 73 | |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 74 | <h3 id="AutomaticBackup">Drag and Drop</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 75 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 76 | This sample demonstrates how to use drag and drop user interface feature |
| 77 | between windows, when using a multi-window view. |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 78 | </p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 79 | <p> |
| 80 | <a href="https://github.com/googlesamples/android-DragAndDrop"> |
| 81 | Get it on GitHub</a> |
Takeshi Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame^] | 82 | </p> |