1 page.title=Android 7.0 Samples 2 page.tags="Android 7.0", "nougat", "samples", "android" 3 meta.tags="android n", "Nougat", "android 7.0" 4 page.image=images/cards/card-n-samples_2x.png 5 @jd:body 6 7 <p> 8 Use the code samples below to learn about Android 7.0 capabilities and APIs. To 9 download the samples in Android Studio, select the <b>File > New > Import 10 Samples</b> menu option. 11 </p> 12 13 <p class="note"> 14 <strong>Note:</strong> These downloadable projects are designed 15 for use with Gradle and Android Studio. 16 </p> 17 18 19 <h3 id="mw">Multi-Window Playground</h3> 20 <img src="{@docRoot}images/android-7.0/sample-multiwindow.png" style="float: left; padding-right: 0.5em" height="250" width="156"/> 21 <p> 22 This sample demonstrates how to take advantage of multiple window 23 user interfaces with your app. 24 </p> 25 <p> 26 <a href="https://github.com/googlesamples/android-MultiWindowPlayground"> 27 Get it on GitHub</a> 28 </p> 29 30 <div style="clear: both;"></div> 31 <h3 id="an">Active Notifications</h3> 32 <img src="{@docRoot}images/android-7.0/sample-activenotifications.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> 33 <p> 34 This is a pre-existing sample which shows a simple service that sends 35 notifications using NotificationCompat. Each unread conversation from a user 36 is sent as a distinct notification. 37 </p> 38 <p> 39 This sample has been updated to take advantage of new notification features 40 available in Android N. 41 </p> 42 <p> 43 <a href="https://github.com/googlesamples/android-ActiveNotifications"> 44 Get it on GitHub</a> 45 </p> 46 47 <div style="clear: both;"></div> 48 <h3 id="ms">Messaging Service</h3> 49 <img src="{@docRoot}images/android-7.0/sample-messagingservice.png" style="float: left; padding-right: 0.5em" height="250" width="150" /> 50 <p> 51 This is a pre-existing sample which demonstrates how to use 52 NotificationManager to tell how many notifications an application is currently 53 showing. 54 </p> 55 <p> 56 This sample has been updated to take advantage of new notification features 57 available in Android N. 58 </p> 59 <p> 60 <a href="https://github.com/googlesamples/android-MessagingService"> 61 Get it on GitHub</a> 62 </p> 63 64 <div style="clear: both;"></div> 65 <h3 id="fbe">Direct Boot</h3> 66 <img src="{@docRoot}images/android-7.0/sample-directboot.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> 67 <p> 68 This sample demonstrates how to store and access data in a device encrypted 69 storage which is always available while the device is booted. 70 </p> 71 <p> 72 <a href="https://github.com/googlesamples/android-DirectBoot"> 73 Get it on GitHub</a> 74 </p> 75 76 <div style="clear: both;"></div> 77 <h3 id="sda">Scoped Directory Access</h3> 78 <img src="{@docRoot}images/android-7.0/sample-scopeddirectoryaccess.png" style="float: left; padding-right: 0.5em" height="250" width="141" /> 79 <p> 80 This sample demonstrates how to read and write data from specific 81 directories, while requiring fewer permissions. 82 </p> 83 <p> 84 <a href="https://github.com/googlesamples/android-ScopedDirectoryAccess"> 85 Get it on GitHub</a> 86 </p> 87