2016-02-06 18:24:32 -08:00
|
|
|
page.title=Samples
|
2016-03-03 19:02:17 -08:00
|
|
|
page.tags="preview", "samples", "android"
|
2016-03-04 15:21:59 -08:00
|
|
|
page.image=images/cards/card-n-samples_2x.png
|
2016-02-06 18:24:32 -08:00
|
|
|
@jd:body
|
|
|
|
|
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
The following code samples are provided for the N Developer Preview. To
|
|
|
|
download the samples in Android Studio, select the <b>File > Import
|
|
|
|
Samples</b> menu option.
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="note">
|
|
|
|
<strong>Note:</strong> These downloadable projects are designed
|
|
|
|
for use with Gradle and Android Studio.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="mw">Multi-Window Playground</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
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>
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="notifications">Notifications</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
This sample is updated to demonstrates how to take advantage of new
|
|
|
|
notifications features available in the N Developer Preview.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="https://github.com/googlesamples/android-Notifications">
|
|
|
|
Get it on GitHub</a>
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="jobsched">JobScheduler</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
This sample demonstrates how to use the JobScheduler API to schedule
|
|
|
|
background tasks when certain conditions apply, such as network or charging
|
|
|
|
state.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="https://github.com/googlesamples/android-JobScheduler">
|
|
|
|
Get it on GitHub</a>
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="fbe">File Based Encryption</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
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-FileBasedEncryption">
|
|
|
|
Get it on GitHub</a>
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="sda">Scoped Directory Access</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
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>
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
2016-03-03 19:02:17 -08:00
|
|
|
<h3 id="AutomaticBackup">Drag and Drop</h3>
|
2016-02-06 18:24:32 -08:00
|
|
|
<p>
|
2016-03-03 19:02:17 -08:00
|
|
|
This sample demonstrates how to use drag and drop user interface feature
|
|
|
|
between windows, when using a multi-window view.
|
2016-02-06 18:24:32 -08:00
|
|
|
</p>
|
2016-03-03 19:02:17 -08:00
|
|
|
<p>
|
|
|
|
<a href="https://github.com/googlesamples/android-DragAndDrop">
|
|
|
|
Get it on GitHub</a>
|
|
|
|
</p>
|