Skip to content

Most visited

Recently visited

navigation

Code samples

Use the code samples below to learn about Android Instant Apps capabilities and APIs.

Hello World sample app

This sample app demonstrates how to build an installed app and an instant app with the same behaviors.

Get it on GitHub

Hello multi feature module sample app

This sample app builds upon the Hello World sample app by moving its code into two feature modules. These modules can be run independently.

Get it on GitHub

Multi feature module sample app

This sample app demonstrates how to build an installed app and an instant app with the same behaviors. The functionality of the instant app is split in two features that you can launch individually on a device.

Get it on GitHub

Build flavors sample app

This sample app demonstrates how to build an installed app and an instant app with the same behaviors. The functionality of the instant app is split in two features that you can launch individually on a device.

This sample also uses the concept of build flavors, providing both a "paid" and "free" version of the app.

Get it on GitHub

Google Analytics for Firebase sample app

This sample app demonstrates how to build an installed app and an instant app with the same behaviors. The app integrates Google Analytics for Firebase event logging into both the installed and instant app, demonstrating how to differentiate events raised in the two versions of the app.

Get it on GitHub

For more information on how to integrate Analytics into your instant app, see the article Add Google Analytics for Firebase to your instant app.

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!

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