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> |
David Friedman | fffa8ac | 2016-03-07 22:13:29 -0800 | [diff] [blame] | 7 | The following code samples are provided for Android N. To |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 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> |
Joe Fernandez | 5bc83ac | 2016-03-07 20:42:04 -0800 | [diff] [blame] | 24 | <a href="https://github.com/googlesamples/android-MultiWindowPlayground"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 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 | |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 29 | <h3 id="an">Active Notifications</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 30 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 31 | 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 Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 34 | </p> |
| 35 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 36 | 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 Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 41 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 42 | </p> |
| 43 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 44 | |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 45 | <h3 id="ms">Messaging Service</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 46 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 47 | 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 Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 50 | </p> |
| 51 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame^] | 52 | 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 Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 57 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 58 | </p> |
| 59 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 60 | |
Takeshi Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame] | 61 | <h3 id="fbe">Direct Boot</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 62 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 63 | 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 Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame] | 67 | <a href="https://github.com/googlesamples/android-DirectBoot"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 68 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 69 | </p> |
| 70 | |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 71 | |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 72 | <h3 id="sda">Scoped Directory Access</h3> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 73 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 74 | 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 Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 80 | </p> |