Skip to content

Most visited

Recently visited

navigation

What's New

The following code samples were recently published. You can download them in the Android SDK Manager under the Samples for SDK component for Android 7.1 (API 25).

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

App shortcuts sample

This sample demonstrates how to use the app shortcuts API introduced in Android 7.1 (API level 25). This API allows an application to define a set of intents which are displayed when a user long-presses on the app's launcher icon. Examples are given for registering links both statically in XML, as well as dynamically at runtime.

App shortcuts sample

Image keyboard app sample

This sample demonstrates how to implement the Commit Content API, using the Android Support Library. This API provides a universal way for IMEs to send images and other rich content directly to a text editor in an app, allowing users to compose content using custom emojis, stickers, or other rich content provided by other applications.

Image keyboard app sample

Image keyboard IME sample

This sample demonstrates how to write a custom image keyboard using the Commit Content API and the Android Support Library. This keyboard will be displayed inside compatible apps (also using the Commit Content API), allowing users to insert emojis, stickers, or other rich content into text editors.

Image keyboard IME sample

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

Hooray!

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 one-minute survey?
Help us improve Android tools and documentation.