Skip to content

Most visited

Recently visited

navigation

Android 7.0 Samples

Use the code samples below to learn about Android 7.0 capabilities and APIs. To download the samples in Android Studio, select the File > New > Import Samples menu option.

Note: These downloadable projects are designed for use with Gradle and Android Studio.

Multi-Window Playground

This sample demonstrates how to take advantage of multiple window user interfaces with your app.

Get it on GitHub

Active Notifications

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.

This sample has been updated to take advantage of new notification features available in Android 7.0 (API level 24).

Get it on GitHub

Messaging Service

This is a pre-existing sample which demonstrates how to use NotificationManager to tell how many notifications an application is currently showing.

This sample has been updated to take advantage of new notification features available in Android 7.0 (API level 24).

Get it on GitHub

Direct Boot

This sample demonstrates how to store and access data in a device encrypted storage which is always available while the device is booted.

Get it on GitHub

Scoped Directory Access

This sample demonstrates how to read and write data from specific directories, while requiring fewer permissions.

Get it on GitHub

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)