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