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> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 19 | <img src="{@docRoot}preview/images/sample-multiwindow.png" style="float: left; padding-right: 0.5em" height="250" width="156"/> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 20 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 21 | This sample demonstrates how to take advantage of multiple window |
| 22 | user interfaces with your app. |
| 23 | </p> |
| 24 | <p> |
Joe Fernandez | 5bc83ac | 2016-03-07 20:42:04 -0800 | [diff] [blame] | 25 | <a href="https://github.com/googlesamples/android-MultiWindowPlayground"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 26 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 27 | </p> |
| 28 | |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 29 | <div style="clear: both;"></div> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 30 | <h3 id="an">Active Notifications</h3> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 31 | <img src="{@docRoot}preview/images/sample-activenotifications.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 32 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 33 | This is a pre-existing sample which shows a simple service that sends |
| 34 | notifications using NotificationCompat. Each unread conversation from a user |
| 35 | is sent as a distinct notification. |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 36 | </p> |
| 37 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 38 | This sample has been updated to take advantage of new notification features |
| 39 | available in Android N. |
| 40 | </p> |
| 41 | <p> |
| 42 | <a href="https://github.com/googlesamples/android-ActiveNotifications"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 43 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 44 | </p> |
| 45 | |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 46 | <div style="clear: both;"></div> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 47 | <h3 id="ms">Messaging Service</h3> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 48 | <img src="{@docRoot}preview/images/sample-messagingservice.png" style="float: left; padding-right: 0.5em" height="250" width="150" /> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 49 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 50 | This is a pre-existing sample which demonstrates how to use |
| 51 | NotificationManager to tell how many notifications an application is currently |
| 52 | showing. |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 53 | </p> |
| 54 | <p> |
Trevor Johns | 67c5671 | 2016-03-08 19:17:08 -0800 | [diff] [blame] | 55 | This sample has been updated to take advantage of new notification features |
| 56 | available in Android N. |
| 57 | </p> |
| 58 | <p> |
| 59 | <a href="https://github.com/googlesamples/android-MessagingService"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 60 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 61 | </p> |
| 62 | |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 63 | <div style="clear: both;"></div> |
Takeshi Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame] | 64 | <h3 id="fbe">Direct Boot</h3> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 65 | <img src="{@docRoot}preview/images/sample-directboot.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 66 | <p> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 67 | This sample demonstrates how to store and access data in a device encrypted |
| 68 | storage which is always available while the device is booted. |
| 69 | </p> |
| 70 | <p> |
Takeshi Hagikura | a2d470b | 2016-03-08 13:03:20 +0900 | [diff] [blame] | 71 | <a href="https://github.com/googlesamples/android-DirectBoot"> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 72 | Get it on GitHub</a> |
Dirk Dougherty | 5748bc4 | 2016-02-06 18:24:32 -0800 | [diff] [blame] | 73 | </p> |
| 74 | |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 75 | <div style="clear: both;"></div> |
Joe Fernandez | 561db66 | 2016-03-03 19:02:17 -0800 | [diff] [blame] | 76 | <h3 id="sda">Scoped Directory Access</h3> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 77 | <img src="{@docRoot}preview/images/sample-scopeddirectoryaccess.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> |
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 | This sample demonstrates how to read and write data from specific |
| 80 | directories, while requiring fewer permissions. |
| 81 | </p> |
| 82 | <p> |
| 83 | <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess"> |
| 84 | Get it on GitHub</a> |
Trevor Johns | 74c762e | 2016-03-08 21:04:20 -0800 | [diff] [blame] | 85 | </p> |