Skip to main content
Android Developers
Essentials
  • Build AI experiences
  • Build AI-powered Android apps with Gemini APIs and more.
  • Get started
  • Get started
  • Start by creating your first app. Go deeper with our training courses or explore app development on your own.
  • Hello world
  • Training courses
  • Tutorials
  • Compose for teams
  • Kotlin for Android
  • Monetization with Play ↗️
  • Extend by device
  • Build apps that give your users seamless experiences from phones to tablets, watches, headsets, and more.
  • Adaptive apps
  • Android XR
  • Wear OS
  • Android for Cars
  • Android TV
  • ChromeOS
  • Build by category
  • Learn to build for your use case by following Google's prescriptive and opinionated guidance.
  • Games
  • Camera & media
  • Social & messaging
  • Health & fitness
  • Productivity
  • Enterprise apps
  • Get the latest
  • Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback.
  • Latest updates
  • Experimental updates
  • Android Studio preview
  • Jetpack & Compose libraries
  • Wear OS releases
  • Privacy Sandbox ↗️
Design & Plan
  • Excellent Experiences
  • Build the best experiences for your best users.
  • Learn more
  • UI Design
  • Design a beautiful user interface using Android best practices.
  • Design for Android
  • Mobile
  • Adaptive UI
  • Android XR
  • Widgets
  • Wear OS
  • Android TV
  • Architecture
  • Design robust, testable, and maintainable app logic and services.
  • Introduction
  • Libraries
  • Navigation
  • Modularization
  • Testing
  • Quality
  • Plan for app quality and align with Play store guidelines.
  • Overview
  • Core value
  • User experience
  • Accessibility
  • Technical quality
  • Excellent Experiences
  • Security
  • Safeguard users against threats and ensure a secure Android experience.
  • Overview
  • Privacy
  • Permissions
  • Identity
  • Fraud prevention
Develop
  • Gemini in Android Studio
  • Your AI development companion for Android development.
  • Learn more
  • Get Android Studio
  • Core areas
  • Get the samples and docs for the features you need.
  • Samples
  • User interfaces
  • Background work
  • Data and files
  • Connectivity
  • All core areas ⤵️
  • Tools and workflow
  • Use the IDE to write and build your app, or create your own pipeline.
  • Write and debug code
  • Build projects
  • Test your app
  • Performance
  • Command-line tools
  • Gradle plugin API
  • Device tech
  • Write code for form factors. Connect devices and share data.
  • Adaptive UI
  • Wear OS
  • Android XR
  • Android Health
  • Android for Cars
  • Android TV
  • All devices ⤵️
  • Libraries
  • Browse API reference documentation with all the details.
  • Android platform
  • Jetpack libraries
  • Compose libraries
  • Google Play services ↗️
  • Google Play SDK index ↗️
Google Play Community
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Android Studio
  • Google Play
Overview Play Console Play Billing Play Integrity Play Policies Play Services Brand & marketing Other Play guides
Android Developers
  • Essentials
    • More
  • Design & Plan
    • More
  • Develop
    • More
  • Google Play
    • Overview
    • Play Console
    • Play Billing
    • Play Integrity
    • Play Policies
    • Play Services
    • Brand & marketing
    • Other Play guides
  • Community
  • Android Studio
  • Android App Bundles
    • About app bundles
    • Configure the base module
    • Build and test your app bundle
    • Device targeting
    • Add code transparency
    • About the app bundle format
    • Frequently asked questions
    • APK expansion files
    • Multiple APK support
      • About multiple APKs
      • Create multiple APKs for different API levels
      • Create multiple APKs for different screen sizes
      • Create multiple APKs for different GL textures ⍈
      • Create multiple APKs with several dimensions
  • Engage SDK
    • Engage SDK Developer Preview
    • About Engage SDK
    • Engage SDK Watch integration guide
    • Engage SDK Listen integration guide
    • Engage SDK Read integration guide
    • Engage SDK TV integration guide
    • Engage SDK Shopping integration guide
    • Engage SDK Food integration guide
    • Engage SDK Social integration guide
    • Engage SDK Travel integration guide
    • Engage SDK Health & Fitness integration guide
    • Engage SDK Other Verticals integration guide
    • Engage SDK integration workflow
    • Engage SDK Cluster publishing guidelines
    • Engage SDK Frequently asked questions
    • Engage SDK Release Notes
    • Engage SDK Sample Apps
  • Play app distribution
    • How app updates work
    • Filters on Google Play
    • Release audience restriction
    • Play as you Download
      • About Play as you Download
      • Best practices
    • Play Instant
      • About Google Play Instant
      • Get started with instant apps
        • Create an instant-enabled app bundle
        • UX best practices for apps
      • Get started with instant games
        • About instant games
        • Unity plugin
        • UX best practices for games
        • Migrate to Android App Bundles
        • Implement cloud delivery of assets
        • Support Google Play Games Services
        • Instant Play games
        • Instant Play games checklist
      • Reduce the size of your instant app or game
      • Add ads to your instant app or game
      • Provide multiple entry points
      • Integrate with Firebase
        • Add Google Analytics for Firebase to your instant app
        • Use Firebase Dynamic Links with instant apps
      • Technical requirements checklist
      • Google Play Instant policy
      • Resources
        • Reference
        • Code samples
        • SDK release notes
        • Instant App Intents
      • Support
        • Known issues
        • StackOverflow
    • Application licensing
      • About application licensing
      • Licensing overview
      • Setting up licensing
      • Adding server-side verification
      • Adding client-side verification
      • Licensing reference
  • Play Asset Delivery
    • About Play Asset Delivery
    • Integrate asset delivery (Kotlin and Java)
    • Integrate asset delivery (Native)
    • Integrate asset delivery (Unity)
    • Device targeting for asset delivery
    • Target texture compression formats
    • Test asset delivery
  • Play Core libraries
  • Play Developer APIs
  • Play Feature Delivery
    • About Play Feature Delivery
    • Configure install-time delivery
    • Configure conditional delivery
    • Configure on-demand delivery
    • On-demand delivery best practices
    • Configure instant delivery
    • Additional resources
  • Play for on-device AI
  • Play Games ⍈
  • Play in-app reviews
    • About in-app reviews
    • Integrate in-app reviews (Kotlin or Java)
    • Integrate in-app reviews (Native)
    • Integrate in-app reviews (Unity)
    • Integrate in-app reviews (Unreal Engine)
    • Test in-app reviews
  • Play in-app updates
    • About in-app updates
    • Support in-app updates (Kotlin or Java)
    • Support in-app updates (Native)
    • Support in-app updates (Unity)
    • Support in-app updates (Unreal Engine)
    • Test in-app updates
  • Play Install Referrer
    • About Play Install Referrer
    • Play Install Referrer Library
      • Overview
      • Reference
      • Release notes
    • Play Install Referrer API
  • Play Points
    • About Play Points
    • Create products and promotions
    • Detect and deliver products
    • Test products
  • Play requirements
    • Target API level requirement
    • Support 64-bit architectures
  • Build AI experiences
  • Get started
  • Get started
  • Hello world
  • Training courses
  • Tutorials
  • Compose for teams
  • Kotlin for Android
  • Monetization with Play ↗️
  • Extend by device
  • Adaptive apps
  • Android XR
  • Wear OS
  • Android for Cars
  • Android TV
  • ChromeOS
  • Build by category
  • Games
  • Camera & media
  • Social & messaging
  • Health & fitness
  • Productivity
  • Enterprise apps
  • Get the latest
  • Latest updates
  • Experimental updates
  • Android Studio preview
  • Jetpack & Compose libraries
  • Wear OS releases
  • Privacy Sandbox ↗️
  • Excellent Experiences
  • Learn more
  • UI Design
  • Design for Android
  • Mobile
  • Adaptive UI
  • Android XR
  • Widgets
  • Wear OS
  • Android TV
  • Architecture
  • Introduction
  • Libraries
  • Navigation
  • Modularization
  • Testing
  • Quality
  • Overview
  • Core value
  • User experience
  • Accessibility
  • Technical quality
  • Excellent Experiences
  • Security
  • Overview
  • Privacy
  • Permissions
  • Identity
  • Fraud prevention
  • Gemini in Android Studio
  • Learn more
  • Get Android Studio
  • Core areas
  • Samples
  • User interfaces
  • Background work
  • Data and files
  • Connectivity
  • All core areas ⤵️
  • Tools and workflow
  • Write and debug code
  • Build projects
  • Test your app
  • Performance
  • Command-line tools
  • Gradle plugin API
  • Device tech
  • Adaptive UI
  • Wear OS
  • Android XR
  • Android Health
  • Android for Cars
  • Android TV
  • All devices ⤵️
  • Libraries
  • Android platform
  • Jetpack libraries
  • Compose libraries
  • Google Play services ↗️
  • Google Play SDK index ↗️
  • Google Play
  • Other Play guides

Code samples

Use the code samples to learn about Google Play Instant capabilities and APIs.

Note: These downloadable projects are designed for use with Gradle, Instant Apps Development SDK 1.1.0, and Android Studio 3.0.

Get the samples on GitHub

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

  • X X
    Follow @GooglePlayBiz for news and support
  • Medium Medium
    Read articles and industry thoughts from the Play team
  • LinkedIn LinkedIn
    Connect with Google Play business community
  • Developer Help Developer Help
    Get help from the Google Play Developer Help Community
  • More Android

    • Android
    • Android for Enterprise
    • Security
    • Source
    • News
    • Blog
    • Podcasts
  • Discover

    • Gaming
    • Machine Learning
    • Health & Fitness
    • Camera & Media
    • Privacy
    • 5G
  • Android Devices

    • Large screens
    • Wear OS
    • ChromeOS devices
    • Android for cars
    • Android TV
  • Releases

    • Android 15
    • Android 14
    • Android 13
    • Android 12
    • Android 11
    • Android 10
    • Pie
  • Documentation and Downloads

    • Android Studio guide
    • Developers guides
    • API reference
    • Download Studio
    • Android NDK
  • Support

    • Report platform bug
    • Report documentation bug
    • Google Play support
    • Join research studies
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Privacy
  • License
  • Brand guidelines
  • ICP证合字B2-20070004号
  • Manage cookies
  • Get news and tips by email Subscribe
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어