page.title=What's New page.image=images/cards/samples-new_2x.png @jd:body
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.
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.
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.
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.