CINXE.COM
Features and APIs Overview | Android Developers
<!doctype html> <html lang="en" dir="ltr"> <head> <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com"> <meta name="google-signin-scope" content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award"> <meta property="og:site_name" content="Android Developers"> <meta property="og:type" content="website"><meta name="theme-color" content="#34a853"><meta charset="utf-8"> <meta content="IE=Edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="manifest" href="/_pwa/android/manifest.json" crossorigin="use-credentials"> <link rel="preconnect" href="//www.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.gstatic.com" crossorigin> <link rel="preconnect" href="//fonts.googleapis.com" crossorigin> <link rel="preconnect" href="//apis.google.com" crossorigin> <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap"> <link rel="stylesheet" href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/css/app.css"> <link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/css/dark-theme.css" disabled> <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/favicon.svg"> <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/touchicon-180.png"><link rel="canonical" href="https://developer.android.com/about/versions/15/features"><link rel="search" type="application/opensearchdescription+xml" title="Android Developers" href="https://developer.android.com/s/opensearch.xml"> <link rel="alternate" hreflang="en" href="https://developer.android.com/about/versions/15/features" /><link rel="alternate" hreflang="x-default" href="https://developer.android.com/about/versions/15/features" /><link rel="alternate" hreflang="ar" href="https://developer.android.com/about/versions/15/features?hl=ar" /><link rel="alternate" hreflang="bn" href="https://developer.android.com/about/versions/15/features?hl=bn" /><link rel="alternate" hreflang="zh-Hans" href="https://developer.android.com/about/versions/15/features?hl=zh-cn" /><link rel="alternate" hreflang="zh-Hant" href="https://developer.android.com/about/versions/15/features?hl=zh-tw" /><link rel="alternate" hreflang="fa" href="https://developer.android.com/about/versions/15/features?hl=fa" /><link rel="alternate" hreflang="fr" href="https://developer.android.com/about/versions/15/features?hl=fr" /><link rel="alternate" hreflang="de" href="https://developer.android.com/about/versions/15/features?hl=de" /><link rel="alternate" hreflang="he" href="https://developer.android.com/about/versions/15/features?hl=he" /><link rel="alternate" hreflang="hi" href="https://developer.android.com/about/versions/15/features?hl=hi" /><link rel="alternate" hreflang="id" href="https://developer.android.com/about/versions/15/features?hl=id" /><link rel="alternate" hreflang="it" href="https://developer.android.com/about/versions/15/features?hl=it" /><link rel="alternate" hreflang="ja" href="https://developer.android.com/about/versions/15/features?hl=ja" /><link rel="alternate" hreflang="ko" href="https://developer.android.com/about/versions/15/features?hl=ko" /><link rel="alternate" hreflang="pl" href="https://developer.android.com/about/versions/15/features?hl=pl" /><link rel="alternate" hreflang="pt-BR" href="https://developer.android.com/about/versions/15/features?hl=pt-br" /><link rel="alternate" hreflang="ru" href="https://developer.android.com/about/versions/15/features?hl=ru" /><link rel="alternate" hreflang="es-419" href="https://developer.android.com/about/versions/15/features?hl=es-419" /><link rel="alternate" hreflang="th" href="https://developer.android.com/about/versions/15/features?hl=th" /><link rel="alternate" hreflang="tr" href="https://developer.android.com/about/versions/15/features?hl=tr" /><link rel="alternate" hreflang="vi" href="https://developer.android.com/about/versions/15/features?hl=vi" /><title>Features and APIs Overview | Android Developers</title> <meta property="og:title" content="Features and APIs Overview | Android Developers"><meta name="description" content="Learn about the features and APIs for developers in Android 15."> <meta property="og:description" content="Learn about the features and APIs for developers in Android 15."><meta property="og:url" content="https://developer.android.com/about/versions/15/features"><meta property="og:image" content="https://developer.android.com/static/images/social/android-developers.png"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image"><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "Features and APIs Overview" } </script> <link rel="stylesheet" href="/extras.css"></head> <body class="" template="page" theme="android-theme" type="article" appearance layout="docs" display-toc pending> <devsite-progress type="indeterminate" id="app-progress"></devsite-progress> <section class="devsite-wrapper"> <devsite-cookie-notification-bar></devsite-cookie-notification-bar><devsite-header role="banner"> <div class="devsite-header--inner nocontent"> <div class="devsite-top-logo-row-wrapper-wrapper"> <div class="devsite-top-logo-row-wrapper"> <div class="devsite-top-logo-row"> <button type="button" id="devsite-hamburger-menu" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Navigation menu button" visually-hidden aria-label="Open menu"> </button> <div class="devsite-product-name-wrapper"> <a href="/" class="devsite-site-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav" track-name="androidDevelopers" track-metadata-position="nav" track-metadata-eventDetail="nav"> <picture> <source srcset="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup-dark-theme.svg" media="(prefers-color-scheme: dark)" class="devsite-dark-theme" alt="Android Developers"> <img src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup.svg" class="devsite-site-logo" alt="Android Developers"> </picture> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> </li> </ul> </span> </div> <div class="devsite-top-logo-row-middle"> <div class="devsite-header-upper-tabs"> <devsite-tabs class="upper-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Upper tabs"> <tab class="devsite-dropdown devsite-dropdown-full devsite-active "> <a href="https://developer.android.com/get-started" track-metadata-eventdetail="https://developer.android.com/get-started" class="devsite-tabs-content gc-analytics-event android-dropdown-tab" track-type="nav" track-metadata-position="nav - essentials" track-metadata-module="primary nav" aria-label="Essentials, selected" data-category="Site-Wide Custom Events" data-label="Tab: Essentials" track-name="essentials" > Essentials </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Essentials" track-type="nav" track-metadata-eventdetail="https://developer.android.com/get-started" track-metadata-position="nav - essentials" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Essentials" track-name="essentials" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column android-dropdown android-dropdown-primary android-dropdown-studio"> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Gemini in Android Studio</li> <li class="devsite-nav-description">Your AI development companion for Android development. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/gemini-in-android" track-type="nav" track-metadata-eventdetail="https://developer.android.com/gemini-in-android" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="gemini in android studio" tooltip class="button button-primary" > <div class="devsite-nav-item-title"> Learn more </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/studio" track-type="nav" track-metadata-eventdetail="https://developer.android.com/studio" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="gemini in android studio" tooltip class="button button-white" > <div class="devsite-nav-item-title"> Get Android Studio </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-launch"> <li class="devsite-nav-title" role="heading" tooltip>Get started</li> <li class="devsite-nav-description">Start by creating your first app. Go deeper with our training courses or explore app development on your own. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/get-started/overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/get-started/overview" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Hello world </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/courses" track-type="nav" track-metadata-eventdetail="https://developer.android.com/courses" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Training courses </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/get-started/codelabs" track-type="nav" track-metadata-eventdetail="https://developer.android.com/get-started/codelabs" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Tutorials </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/kotlin" track-type="nav" track-metadata-eventdetail="https://developer.android.com/kotlin" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Kotlin for Android </div> </a> </li> <li class="devsite-nav-item"> <a href="https://play.google.com/console/about/guides/monetize/" track-type="nav" track-metadata-eventdetail="https://play.google.com/console/about/guides/monetize/" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get started" tooltip > <div class="devsite-nav-item-title"> Monetization with Play ↗️ </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-multiple-screens"> <li class="devsite-nav-title" role="heading" tooltip>Extend by device</li> <li class="devsite-nav-description">Build apps that give your users seamless experiences from phones to tablets, watches, and more. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/adaptive-apps" track-type="nav" track-metadata-eventdetail="https://developer.android.com/adaptive-apps" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> Adaptive apps </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/wear" track-type="nav" track-metadata-eventdetail="https://developer.android.com/wear" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> Wear OS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/cars" track-type="nav" track-metadata-eventdetail="https://developer.android.com/cars" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> Android for Cars </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/tv" track-type="nav" track-metadata-eventdetail="https://developer.android.com/tv" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> Android TV </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/chrome-os" track-type="nav" track-metadata-eventdetail="https://developer.android.com/chrome-os" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> ChromeOS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/multi-device-development" track-type="nav" track-metadata-eventdetail="https://developer.android.com/multi-device-development" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="extend by device" tooltip > <div class="devsite-nav-item-title"> Cross-device SDK </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-platform"> <li class="devsite-nav-title" role="heading" tooltip>Build by category</li> <li class="devsite-nav-description">Learn to build for your use case by following Google's prescriptive and opinionated guidance. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/games" track-type="nav" track-metadata-eventdetail="https://developer.android.com/games" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Games </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/media" track-type="nav" track-metadata-eventdetail="https://developer.android.com/media" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Camera & Media </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/social-and-messaging" track-type="nav" track-metadata-eventdetail="https://developer.android.com/social-and-messaging" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Social & messaging </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/health-and-fitness" track-type="nav" track-metadata-eventdetail="https://developer.android.com/health-and-fitness" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Health & Fitness </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/productivity" track-type="nav" track-metadata-eventdetail="https://developer.android.com/productivity" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Productivity </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/work/overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/work/overview" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="build by category" tooltip > <div class="devsite-nav-item-title"> Enterprise apps </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-stars"> <li class="devsite-nav-title" role="heading" tooltip>Get the latest</li> <li class="devsite-nav-description">Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/latest-updates" track-type="nav" track-metadata-eventdetail="https://developer.android.com/latest-updates" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Latest updates </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/latest-updates/experimental" track-type="nav" track-metadata-eventdetail="https://developer.android.com/latest-updates/experimental" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Experimental updates </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/studio/preview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/studio/preview" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Android Studio preview </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/jetpack/androidx/versions" track-type="nav" track-metadata-eventdetail="https://developer.android.com/jetpack/androidx/versions" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Jetpack & Compose libraries </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/wearables/versions/4" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/wearables/versions/4" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Wear OS preview </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design-for-safety/privacy-sandbox" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design-for-safety/privacy-sandbox" track-metadata-position="nav - essentials" track-metadata-module="tertiary nav" track-metadata-module_headline="get the latest" tooltip > <div class="devsite-nav-item-title"> Privacy Sandbox </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown devsite-dropdown-full "> <a href="https://developer.android.com/design" track-metadata-eventdetail="https://developer.android.com/design" class="devsite-tabs-content gc-analytics-event android-dropdown-tab" track-type="nav" track-metadata-position="nav - design & plan" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Design & Plan" track-name="design & plan" > Design & Plan </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Design & Plan" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design" track-metadata-position="nav - design & plan" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Design & Plan" track-name="design & plan" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-layout"> <li class="devsite-nav-title" role="heading" tooltip>UI Design</li> <li class="devsite-nav-description">Design a beautiful user interface using Android best practices.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Design for Android </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui/mobile" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui/mobile" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Mobile </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui/large-screens" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui/large-screens" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Large screens (e.g., tablets) </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui/widget" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui/widget" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Widgets </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui/wear" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui/wear" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Wear OS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/design/ui/tv" track-type="nav" track-metadata-eventdetail="https://developer.android.com/design/ui/tv" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="ui design" tooltip > <div class="devsite-nav-item-title"> Android TV </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-design"> <li class="devsite-nav-title" role="heading" tooltip>Architecture</li> <li class="devsite-nav-description">Design robust, testable, and maintainable app logic and services.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/topic/architecture/intro" track-type="nav" track-metadata-eventdetail="https://developer.android.com/topic/architecture/intro" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="architecture" tooltip > <div class="devsite-nav-item-title"> Introduction </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/topic/libraries/view-binding" track-type="nav" track-metadata-eventdetail="https://developer.android.com/topic/libraries/view-binding" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="architecture" tooltip > <div class="devsite-nav-item-title"> Libraries </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/navigation/navigation-principles" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/navigation/navigation-principles" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="architecture" tooltip > <div class="devsite-nav-item-title"> Navigation </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/topic/modularization" track-type="nav" track-metadata-eventdetail="https://developer.android.com/topic/modularization" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="architecture" tooltip > <div class="devsite-nav-item-title"> Modularization </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/testing/fundamentals" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/testing/fundamentals" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="architecture" tooltip > <div class="devsite-nav-item-title"> Testing </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-vitals"> <li class="devsite-nav-title" role="heading" tooltip>Quality</li> <li class="devsite-nav-description">Plan for app quality and align with Play store guidelines.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quality" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quality" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="quality" tooltip > <div class="devsite-nav-item-title"> Overview </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quality/core-value" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quality/core-value" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="quality" tooltip > <div class="devsite-nav-item-title"> Core value </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quality/user-experience" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quality/user-experience" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="quality" tooltip > <div class="devsite-nav-item-title"> User experience </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quality/technical" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quality/technical" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="quality" tooltip > <div class="devsite-nav-item-title"> Technical quality </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quality/privacy-and-security" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quality/privacy-and-security" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="quality" tooltip > <div class="devsite-nav-item-title"> Security </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-security-2"> <li class="devsite-nav-title" role="heading" tooltip>Security</li> <li class="devsite-nav-description">Safeguard users against threats and ensure a secure Android experience.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/security" track-type="nav" track-metadata-eventdetail="https://developer.android.com/security" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="security" tooltip > <div class="devsite-nav-item-title"> Overview </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/privacy-and-security/about" track-type="nav" track-metadata-eventdetail="https://developer.android.com/privacy-and-security/about" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="security" tooltip > <div class="devsite-nav-item-title"> Privacy </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/identity" track-type="nav" track-metadata-eventdetail="https://developer.android.com/identity" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="security" tooltip > <div class="devsite-nav-item-title"> Identity </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/security/fraud-prevention" track-type="nav" track-metadata-eventdetail="https://developer.android.com/security/fraud-prevention" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="security" tooltip > <div class="devsite-nav-item-title"> Fraud prevention </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-earth"> <li class="devsite-nav-title" role="heading" tooltip>Build for Billions</li> <li class="devsite-nav-description">Create the best experience for entry-level devices</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/build-for-billions" track-type="nav" track-metadata-eventdetail="https://developer.android.com/build-for-billions" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="build for billions" tooltip > <div class="devsite-nav-item-title"> Overview </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/docs/quality-guidelines/build-for-billions" track-type="nav" track-metadata-eventdetail="https://developer.android.com/docs/quality-guidelines/build-for-billions" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="build for billions" tooltip > <div class="devsite-nav-item-title"> About new markets </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/topics/androidgo" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/topics/androidgo" track-metadata-position="nav - design & plan" track-metadata-module="tertiary nav" track-metadata-module_headline="build for billions" tooltip > <div class="devsite-nav-item-title"> Android (Go edition) </div> </a> </li> </ul> </div> </div> </div> </tab> <tab class="devsite-dropdown devsite-dropdown-full "> <a href="https://developer.android.com/develop" track-metadata-eventdetail="https://developer.android.com/develop" class="devsite-tabs-content gc-analytics-event android-dropdown-tab" track-type="nav" track-metadata-position="nav - develop" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Develop" track-name="develop" > Develop </a> <a href="#" role="button" aria-haspopup="true" aria-expanded="false" aria-label="Dropdown menu for Develop" track-type="nav" track-metadata-eventdetail="https://developer.android.com/develop" track-metadata-position="nav - develop" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Develop" track-name="develop" class="devsite-tabs-dropdown-toggle devsite-icon devsite-icon-arrow-drop-down"></a> <div class="devsite-tabs-dropdown" aria-label="submenu" hidden> <div class="devsite-tabs-dropdown-content"> <div class="devsite-tabs-dropdown-column android-dropdown android-dropdown-primary android-dropdown-ai"> <ul class="devsite-tabs-dropdown-section "> <li class="devsite-nav-title" role="heading" tooltip>Build AI experiences</li> <li class="devsite-nav-description">Build AI-powered Android apps with Gemini APIs and more. </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/ai" track-type="nav" track-metadata-eventdetail="https://developer.android.com/ai" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="build ai experiences" tooltip class="button button-primary" > <div class="devsite-nav-item-title"> Get started </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-flag"> <li class="devsite-nav-title" role="heading" tooltip>Core areas</li> <li class="devsite-nav-description">Get the samples and docs for the features you need.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/samples" track-type="nav" track-metadata-eventdetail="https://developer.android.com/samples" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> Samples </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/quick-guides" track-type="nav" track-metadata-eventdetail="https://developer.android.com/quick-guides" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> Try Quick Guidesᵇᵉᵗᵃ </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/develop/ui" track-type="nav" track-metadata-eventdetail="https://developer.android.com/develop/ui" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> User interfaces </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/topics/permissions/overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/topics/permissions/overview" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> Permissions </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/develop/background-work" track-type="nav" track-metadata-eventdetail="https://developer.android.com/develop/background-work" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> Background work </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/topics/data" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/topics/data" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> Data and files </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/develop#core-areas" track-type="nav" track-metadata-eventdetail="https://developer.android.com/develop#core-areas" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="core areas" tooltip > <div class="devsite-nav-item-title"> All core areas ⤵️ </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-tools-2"> <li class="devsite-nav-title" role="heading" tooltip>Tools and workflow</li> <li class="devsite-nav-description">Use the IDE to write and build your app, or create your own pipeline.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/studio/write" track-type="nav" track-metadata-eventdetail="https://developer.android.com/studio/write" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Write and debug code </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/build/gradle-build-overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/build/gradle-build-overview" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Build projects </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/testing" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/testing" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Test your app </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/topic/performance/overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/topic/performance/overview" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Performance </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/tools" track-type="nav" track-metadata-eventdetail="https://developer.android.com/tools" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Command-line tools </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/reference/tools/gradle-api" track-type="nav" track-metadata-eventdetail="https://developer.android.com/reference/tools/gradle-api" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="tools and workflow" tooltip > <div class="devsite-nav-item-title"> Gradle plugin API </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-multiple-screens"> <li class="devsite-nav-title" role="heading" tooltip>Device tech</li> <li class="devsite-nav-description">Write code for form factors. Connect devices and share data.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/topics/large-screens/get-started-with-large-screens" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/topics/large-screens/get-started-with-large-screens" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Large screens (e.g., tablets) </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/wearables" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/wearables" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Wear OS </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/health-and-fitness/guides" track-type="nav" track-metadata-eventdetail="https://developer.android.com/health-and-fitness/guides" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Android Health </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview" track-type="nav" track-metadata-eventdetail="https://developer.android.com/guide/topics/connectivity/cross-device-sdk/overview" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Cross-device SDK </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/cars" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/cars" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Android for Cars </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/training/tv" track-type="nav" track-metadata-eventdetail="https://developer.android.com/training/tv" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> Android TV </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/chrome-os/intro" track-type="nav" track-metadata-eventdetail="https://developer.android.com/chrome-os/intro" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="device tech" tooltip > <div class="devsite-nav-item-title"> ChromeOS </div> </a> </li> </ul> </div> <div class="devsite-tabs-dropdown-column android-dropdown"> <ul class="devsite-tabs-dropdown-section android-dropdown-section-icon android-dropdown-section-icon-core-library"> <li class="devsite-nav-title" role="heading" tooltip>Libraries</li> <li class="devsite-nav-description">Browse API reference documentation with all the details.</li> <li class="devsite-nav-item"> <a href="https://developer.android.com/reference/packages" track-type="nav" track-metadata-eventdetail="https://developer.android.com/reference/packages" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> Android platform </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/jetpack/androidx/explorer" track-type="nav" track-metadata-eventdetail="https://developer.android.com/jetpack/androidx/explorer" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> Jetpack libraries </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developer.android.com/jetpack/androidx/releases/compose" track-type="nav" track-metadata-eventdetail="https://developer.android.com/jetpack/androidx/releases/compose" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> Compose libraries </div> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/android/reference/packages" track-type="nav" track-metadata-eventdetail="https://developers.google.com/android/reference/packages" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> Google Play services ↗️ </div> </a> </li> <li class="devsite-nav-item"> <a href="https://play.google.com/sdks" track-type="nav" track-metadata-eventdetail="https://play.google.com/sdks" track-metadata-position="nav - develop" track-metadata-module="tertiary nav" track-metadata-module_headline="libraries" tooltip > <div class="devsite-nav-item-title"> Google Play SDK index ↗️ </div> </a> </li> </ul> </div> </div> </div> </tab> <tab > <a href="https://developer.android.com/distribute" track-metadata-eventdetail="https://developer.android.com/distribute" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - google play" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Google Play" track-name="google play" > Google Play </a> </tab> <tab > <a href="https://developer.android.com/community" track-metadata-eventdetail="https://developer.android.com/community" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - community" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" > Community </a> </tab> </nav> </devsite-tabs> </div> <devsite-search enable-signin enable-search enable-suggestions enable-query-completion project-name="Android Developers" tenant-name="Android Developers" > <form class="devsite-search-form" action="https://developer.android.com/s/results" method="GET"> <div class="devsite-search-container"> <button type="button" search-open class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Open search"></button> <div class="devsite-searchbox"> <input aria-activedescendant="" aria-autocomplete="list" aria-label="Search" aria-expanded="false" aria-haspopup="listbox" autocomplete="off" class="devsite-search-field devsite-search-query" name="q" placeholder="Search" role="combobox" type="text" value="" > <div class="devsite-search-image material-icons" aria-hidden="true"> </div> <div class="devsite-search-shortcut-icon-container" aria-hidden="true"> <kbd class="devsite-search-shortcut-icon">/</kbd> </div> </div> </div> </form> <button type="button" search-close class="devsite-search-button devsite-header-icon-button button-flat material-icons" aria-label="Close search"></button> </devsite-search> </div> <devsite-appearance-selector></devsite-appearance-selector> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> <a class="devsite-header-link devsite-top-button button gc-analytics-event" href="https://developer.android.com/studio" data-category="Site-Wide Custom Events" data-label="Site header link" > Android Studio </a> <devsite-user enable-profiles id="devsite-user"> <span class="button devsite-top-button" aria-hidden="true" visually-hidden>Sign in</span> </devsite-user> </div> </div> </div> <div class="devsite-collapsible-section "> <div class="devsite-header-background"> <div class="devsite-product-id-row" > <div class="devsite-product-description-row"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> <a href="https://developer.android.com/get-started" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Lower Header" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="" > Platform </a> </li> </ul> </div> </div> <div class="devsite-doc-set-nav-row"> <devsite-tabs class="lower-tabs"> <nav class="devsite-tabs-wrapper" aria-label="Lower tabs"> <tab > <a href="https://developer.android.com/about" track-metadata-eventdetail="https://developer.android.com/about" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - overview" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Overview" track-name="overview" > Overview </a> </tab> <tab class="devsite-active"> <a href="https://developer.android.com/about/versions" track-metadata-eventdetail="https://developer.android.com/about/versions" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - releases" track-metadata-module="primary nav" aria-label="Releases, selected" data-category="Site-Wide Custom Events" data-label="Tab: Releases" track-name="releases" > Releases </a> </tab> <tab > <a href="https://developer.android.com/guide/platform" track-metadata-eventdetail="https://developer.android.com/guide/platform" class="devsite-tabs-content gc-analytics-event " track-type="nav" track-metadata-position="nav - technology" track-metadata-module="primary nav" data-category="Site-Wide Custom Events" data-label="Tab: Technology" track-name="technology" > Technology </a> </tab> </nav> </devsite-tabs> </div> </div> </div> </div> </devsite-header> <devsite-book-nav scrollbars > <div class="devsite-book-nav-filter" > <span class="filter-list-icon material-icons" aria-hidden="true"></span> <input type="text" placeholder="Filter" aria-label="Type to filter" role="searchbox"> <span class="filter-clear-button hidden" data-title="Clear filter" aria-label="Clear filter" role="button" tabindex="0"></span> </div> <nav class="devsite-book-nav devsite-nav nocontent" aria-label="Side menu"> <div class="devsite-mobile-header"> <button type="button" id="devsite-close-nav" class="devsite-header-icon-button button-flat material-icons gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Close navigation" aria-label="Close navigation"> </button> <div class="devsite-product-name-wrapper"> <a href="/" class="devsite-site-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Site logo" track-type="globalNav" track-name="androidDevelopers" track-metadata-position="nav" track-metadata-eventDetail="nav"> <picture> <source srcset="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup-dark-theme.svg" media="(prefers-color-scheme: dark)" class="devsite-dark-theme" alt="Android Developers"> <img src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup.svg" class="devsite-site-logo" alt="Android Developers"> </picture> </a> <span class="devsite-product-name"> <ul class="devsite-breadcrumb-list" > <li class="devsite-breadcrumb-item "> </li> </ul> </span> </div> </div> <div class="devsite-book-nav-wrapper"> <div class="devsite-mobile-nav-top"> <ul class="devsite-nav-list"> <li class="devsite-nav-item"> <a href="/get-started" class="devsite-nav-title gc-analytics-event devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: Essentials" track-name="essentials" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Essentials" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Essentials </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Essentials" track-name="essentials" > <span class="devsite-nav-text" tooltip menu="Essentials"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Essentials"> </span> </span> </li> </ul> <ul class="devsite-nav-responsive-tabs"> <li class="devsite-nav-item"> <a href="/about" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Overview" track-name="overview" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="/about/versions" class="devsite-nav-title gc-analytics-event devsite-nav-has-children devsite-nav-active" data-category="Site-Wide Custom Events" data-label="Tab: Releases" track-name="releases" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Releases" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip menu="_book"> Releases </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="_book"> </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/platform" class="devsite-nav-title gc-analytics-event devsite-nav-has-children " data-category="Site-Wide Custom Events" data-label="Tab: Technology" track-name="technology" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Technology" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Technology </span> <span class="devsite-nav-icon material-icons" data-icon="forward" > </span> </a> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/design" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Design & Plan" track-name="design & plan" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Design & Plan" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Design & Plan </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Design & Plan" track-name="design & plan" > <span class="devsite-nav-text" tooltip menu="Design & Plan"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Design & Plan"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/develop" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Develop" track-name="develop" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Develop" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Develop </span> </a> <ul class="devsite-nav-responsive-tabs devsite-nav-has-menu "> <li class="devsite-nav-item"> <span class="devsite-nav-title" tooltip data-category="Site-Wide Custom Events" data-label="Tab: Develop" track-name="develop" > <span class="devsite-nav-text" tooltip menu="Develop"> More </span> <span class="devsite-nav-icon material-icons" data-icon="forward" menu="Develop"> </span> </span> </li> </ul> </li> <li class="devsite-nav-item"> <a href="/distribute" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Google Play" track-name="google play" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Google Play" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Google Play </span> </a> </li> <li class="devsite-nav-item"> <a href="/community" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Tab: Community" track-name="community" data-category="Site-Wide Custom Events" data-label="Responsive Tab: Community" track-type="globalNav" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Community </span> </a> </li> <li class="devsite-nav-item"> <a href="/studio" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android Studio" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android Studio </span> </a> </li> </ul> </div> <div class="devsite-mobile-nav-bottom"> <ul class="devsite-nav-list" menu="_book"> <li class="devsite-nav-item"><a href="/about/versions" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions" ><span class="devsite-nav-text" tooltip>All Android releases</span></a></li> <li class="devsite-nav-item devsite-nav-divider devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>Android 15</span> </div></li> <li class="devsite-nav-item"><a href="/about/versions/15" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15" ><span class="devsite-nav-text" tooltip>Home</span></a></li> <li class="devsite-nav-item"><a href="/about/versions/15/summary" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/summary" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/summary" ><span class="devsite-nav-text" tooltip>Features and changes list</span></a></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Get your apps ready</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/about/versions/15/migration" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/migration" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/migration" ><span class="devsite-nav-text" tooltip>Migrate your apps</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/get" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/get" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/get" ><span class="devsite-nav-text" tooltip>Get Android 15</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/setup-sdk" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/setup-sdk" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/setup-sdk" ><span class="devsite-nav-text" tooltip>Set up the Android 15 SDK</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Review behavior changes for apps</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/about/versions/15/behavior-changes-all" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/behavior-changes-all" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/behavior-changes-all" ><span class="devsite-nav-text" tooltip>All apps</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/behavior-changes-15" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/behavior-changes-15" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/behavior-changes-15" ><span class="devsite-nav-text" tooltip>Apps targeting Android 15</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/changes/foreground-service-types" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/changes/foreground-service-types" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/changes/foreground-service-types" ><span class="devsite-nav-text" tooltip>Changes to foreground service types</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/deprecations" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/deprecations" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/deprecations" ><span class="devsite-nav-text" tooltip>Deprecations</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/changes/non-sdk-15" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/changes/non-sdk-15" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/changes/non-sdk-15" ><span class="devsite-nav-text" tooltip>Non-SDK restrictions</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Explore new features and APIs</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/about/versions/15/features" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/features" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/features" ><span class="devsite-nav-text" tooltip>Overview</span></a></li><li class="devsite-nav-item devsite-nav-external"><a href="/work/versions/android-15" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /work/versions/android-15" track-type="bookNav" track-name="click" track-metadata-eventdetail="/work/versions/android-15" ><span class="devsite-nav-text" tooltip>What's new in enterprise</span><span class="devsite-nav-icon material-icons" data-icon="external" data-title="External" aria-hidden="true"></span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>Reference updates</span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/sdk/api_diff/35/changes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /sdk/api_diff/35/changes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/sdk/api_diff/35/changes" ><span class="devsite-nav-text" tooltip>API diffs - API 34 → API 35</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/reference/compat-framework-changes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/reference/compat-framework-changes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/reference/compat-framework-changes" ><span class="devsite-nav-text" tooltip>Compatibility framework changes</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion devsite-nav-preview"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>QPR2 Beta</span><span class="devsite-nav-icon material-icons" data-icon="preview" data-title="Preview" aria-hidden="true"></span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/about/versions/15/release-notes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/release-notes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/release-notes" ><span class="devsite-nav-text" tooltip>Release notes</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/get-qpr" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/get-qpr" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/get-qpr" ><span class="devsite-nav-text" tooltip>Get QPR beta builds</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/feedback" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/feedback" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/feedback" ><span class="devsite-nav-text" tooltip>Feedback and issue tracker</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/download" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/download" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/download" ><span class="devsite-nav-text" tooltip>Flash a factory image</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/download-ota" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/download-ota" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/download-ota" ><span class="devsite-nav-text" tooltip>Apply an OTA image</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/gsi-release-notes" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/gsi-release-notes" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/gsi-release-notes" ><span class="devsite-nav-text" tooltip>Get a Generic System Image (GSI)</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-expandable devsite-nav-accordion devsite-nav-preview"><div class="devsite-expandable-nav"> <a class="devsite-nav-toggle" aria-hidden="true"></a><div class="devsite-nav-title devsite-nav-title-no-path" tabindex="0" role="button"> <span class="devsite-nav-text" tooltip>QPR1 Beta</span><span class="devsite-nav-icon material-icons" data-icon="preview" data-title="Preview" aria-hidden="true"></span> </div><ul class="devsite-nav-section"><li class="devsite-nav-item"><a href="/about/versions/15/release-notes-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/release-notes-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/release-notes-qpr1" ><span class="devsite-nav-text" tooltip>Release notes</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/get-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/get-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/get-qpr1" ><span class="devsite-nav-text" tooltip>Get QPR beta builds</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/feedback-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/feedback-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/feedback-qpr1" ><span class="devsite-nav-text" tooltip>Feedback and issue tracker</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/download-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/download-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/download-qpr1" ><span class="devsite-nav-text" tooltip>Flash a factory image</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/download-ota-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/download-ota-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/download-ota-qpr1" ><span class="devsite-nav-text" tooltip>Apply an OTA image</span></a></li><li class="devsite-nav-item"><a href="/about/versions/15/gsi-release-notes-qpr1" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/versions/15/gsi-release-notes-qpr1" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/versions/15/gsi-release-notes-qpr1" ><span class="devsite-nav-text" tooltip>Get a Generic System Image (GSI)</span></a></li></ul></div></li> <li class="devsite-nav-item devsite-nav-divider devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>App compatibility</span> </div></li> <li class="devsite-nav-item"><a href="/guide/app-compatibility" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /guide/app-compatibility" track-type="bookNav" track-name="click" track-metadata-eventdetail="/guide/app-compatibility" ><span class="devsite-nav-text" tooltip>About app compatibility ⍈</span></a></li> <li class="devsite-nav-item"><a href="/guide/app-compatibility/test-debug" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /guide/app-compatibility/test-debug" track-type="bookNav" track-name="click" track-metadata-eventdetail="/guide/app-compatibility/test-debug" ><span class="devsite-nav-text" tooltip>Compatibility framework tools ⍈</span></a></li> <li class="devsite-nav-item"><a href="/guide/app-compatibility/restrictions-non-sdk-interfaces" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /guide/app-compatibility/restrictions-non-sdk-interfaces" track-type="bookNav" track-name="click" track-metadata-eventdetail="/guide/app-compatibility/restrictions-non-sdk-interfaces" ><span class="devsite-nav-text" tooltip>Restrictions on non-SDK interfaces ⍈</span></a></li> <li class="devsite-nav-item devsite-nav-divider devsite-nav-heading"><div class="devsite-nav-title devsite-nav-title-no-path"> <span class="devsite-nav-text" tooltip>More</span> </div></li> <li class="devsite-nav-item"><a href="/about/dashboards" class="devsite-nav-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Book nav link, pathname: /about/dashboards" track-type="bookNav" track-name="click" track-metadata-eventdetail="/about/dashboards" ><span class="devsite-nav-text" tooltip>Dashboards ⍈</span></a></li> </ul> <ul class="devsite-nav-list" menu="Essentials" aria-label="Side menu" hidden> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Gemini in Android Studio </span> </span> </li> <li class="devsite-nav-item"> <a href="/gemini-in-android" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Learn more" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Learn more </span> </a> </li> <li class="devsite-nav-item"> <a href="/studio" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Get Android Studio" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Get Android Studio </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Get started </span> </span> </li> <li class="devsite-nav-item"> <a href="/get-started/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Hello world" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Hello world </span> </a> </li> <li class="devsite-nav-item"> <a href="/courses" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Training courses" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Training courses </span> </a> </li> <li class="devsite-nav-item"> <a href="/get-started/codelabs" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Tutorials" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Tutorials </span> </a> </li> <li class="devsite-nav-item"> <a href="/kotlin" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Kotlin for Android" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Kotlin for Android </span> </a> </li> <li class="devsite-nav-item"> <a href="https://play.google.com/console/about/guides/monetize/" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Monetization with Play ↗️" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Monetization with Play ↗️ </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Extend by device </span> </span> </li> <li class="devsite-nav-item"> <a href="/adaptive-apps" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Adaptive apps" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Adaptive apps </span> </a> </li> <li class="devsite-nav-item"> <a href="/wear" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Wear OS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Wear OS </span> </a> </li> <li class="devsite-nav-item"> <a href="/cars" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android for Cars" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android for Cars </span> </a> </li> <li class="devsite-nav-item"> <a href="/tv" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android TV" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android TV </span> </a> </li> <li class="devsite-nav-item"> <a href="/chrome-os" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: ChromeOS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > ChromeOS </span> </a> </li> <li class="devsite-nav-item"> <a href="/multi-device-development" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Cross-device SDK" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Cross-device SDK </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Build by category </span> </span> </li> <li class="devsite-nav-item"> <a href="/games" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Games" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Games </span> </a> </li> <li class="devsite-nav-item"> <a href="/media" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Camera & Media" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Camera & Media </span> </a> </li> <li class="devsite-nav-item"> <a href="/social-and-messaging" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Social & messaging" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Social & messaging </span> </a> </li> <li class="devsite-nav-item"> <a href="/health-and-fitness" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Health & Fitness" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Health & Fitness </span> </a> </li> <li class="devsite-nav-item"> <a href="/productivity" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Productivity" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Productivity </span> </a> </li> <li class="devsite-nav-item"> <a href="/work/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Enterprise apps" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Enterprise apps </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Get the latest </span> </span> </li> <li class="devsite-nav-item"> <a href="/latest-updates" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Latest updates" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Latest updates </span> </a> </li> <li class="devsite-nav-item"> <a href="/latest-updates/experimental" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Experimental updates" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Experimental updates </span> </a> </li> <li class="devsite-nav-item"> <a href="/studio/preview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android Studio preview" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android Studio preview </span> </a> </li> <li class="devsite-nav-item"> <a href="/jetpack/androidx/versions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Jetpack & Compose libraries" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Jetpack & Compose libraries </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/wearables/versions/4" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Wear OS preview" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Wear OS preview </span> </a> </li> <li class="devsite-nav-item"> <a href="/design-for-safety/privacy-sandbox" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Privacy Sandbox" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Privacy Sandbox </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Design & Plan" aria-label="Side menu" hidden> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > UI Design </span> </span> </li> <li class="devsite-nav-item"> <a href="/design/ui" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Design for Android" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Design for Android </span> </a> </li> <li class="devsite-nav-item"> <a href="/design/ui/mobile" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Mobile" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Mobile </span> </a> </li> <li class="devsite-nav-item"> <a href="/design/ui/large-screens" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Large screens (e.g., tablets)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Large screens (e.g., tablets) </span> </a> </li> <li class="devsite-nav-item"> <a href="/design/ui/widget" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Widgets" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Widgets </span> </a> </li> <li class="devsite-nav-item"> <a href="/design/ui/wear" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Wear OS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Wear OS </span> </a> </li> <li class="devsite-nav-item"> <a href="/design/ui/tv" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android TV" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android TV </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Architecture </span> </span> </li> <li class="devsite-nav-item"> <a href="/topic/architecture/intro" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Introduction" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Introduction </span> </a> </li> <li class="devsite-nav-item"> <a href="/topic/libraries/view-binding" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Libraries" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Libraries </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/navigation/navigation-principles" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Navigation" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Navigation </span> </a> </li> <li class="devsite-nav-item"> <a href="/topic/modularization" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Modularization" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Modularization </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/testing/fundamentals" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Testing" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Testing </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Quality </span> </span> </li> <li class="devsite-nav-item"> <a href="/quality" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="/quality/core-value" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Core value" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Core value </span> </a> </li> <li class="devsite-nav-item"> <a href="/quality/user-experience" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: User experience" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > User experience </span> </a> </li> <li class="devsite-nav-item"> <a href="/quality/technical" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Technical quality" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Technical quality </span> </a> </li> <li class="devsite-nav-item"> <a href="/quality/privacy-and-security" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Security" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Security </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Security </span> </span> </li> <li class="devsite-nav-item"> <a href="/security" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="/privacy-and-security/about" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Privacy" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Privacy </span> </a> </li> <li class="devsite-nav-item"> <a href="/identity" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Identity" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Identity </span> </a> </li> <li class="devsite-nav-item"> <a href="/security/fraud-prevention" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Fraud prevention" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Fraud prevention </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Build for Billions </span> </span> </li> <li class="devsite-nav-item"> <a href="/build-for-billions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Overview" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Overview </span> </a> </li> <li class="devsite-nav-item"> <a href="/docs/quality-guidelines/build-for-billions" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: About new markets" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > About new markets </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/topics/androidgo" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android (Go edition)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android (Go edition) </span> </a> </li> </ul> <ul class="devsite-nav-list" menu="Develop" aria-label="Side menu" hidden> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Build AI experiences </span> </span> </li> <li class="devsite-nav-item"> <a href="/ai" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Get started" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Get started </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Core areas </span> </span> </li> <li class="devsite-nav-item"> <a href="/samples" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Samples" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Samples </span> </a> </li> <li class="devsite-nav-item"> <a href="/quick-guides" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Try Quick Guidesᵇᵉᵗᵃ" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Try Quick Guidesᵇᵉᵗᵃ </span> </a> </li> <li class="devsite-nav-item"> <a href="/develop/ui" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: User interfaces" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > User interfaces </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/topics/permissions/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Permissions" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Permissions </span> </a> </li> <li class="devsite-nav-item"> <a href="/develop/background-work" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Background work" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Background work </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/topics/data" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Data and files" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Data and files </span> </a> </li> <li class="devsite-nav-item"> <a href="/develop#core-areas" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: All core areas ⤵️" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > All core areas ⤵️ </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Tools and workflow </span> </span> </li> <li class="devsite-nav-item"> <a href="/studio/write" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Write and debug code" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Write and debug code </span> </a> </li> <li class="devsite-nav-item"> <a href="/build/gradle-build-overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Build projects" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Build projects </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/testing" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Test your app" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Test your app </span> </a> </li> <li class="devsite-nav-item"> <a href="/topic/performance/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Performance" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Performance </span> </a> </li> <li class="devsite-nav-item"> <a href="/tools" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Command-line tools" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Command-line tools </span> </a> </li> <li class="devsite-nav-item"> <a href="/reference/tools/gradle-api" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Gradle plugin API" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Gradle plugin API </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Device tech </span> </span> </li> <li class="devsite-nav-item"> <a href="/guide/topics/large-screens/get-started-with-large-screens" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Large screens (e.g., tablets)" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Large screens (e.g., tablets) </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/wearables" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Wear OS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Wear OS </span> </a> </li> <li class="devsite-nav-item"> <a href="/health-and-fitness/guides" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android Health" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android Health </span> </a> </li> <li class="devsite-nav-item"> <a href="/guide/topics/connectivity/cross-device-sdk/overview" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Cross-device SDK" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Cross-device SDK </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/cars" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android for Cars" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android for Cars </span> </a> </li> <li class="devsite-nav-item"> <a href="/training/tv" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android TV" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android TV </span> </a> </li> <li class="devsite-nav-item"> <a href="/chrome-os/intro" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: ChromeOS" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > ChromeOS </span> </a> </li> <li class="devsite-nav-item devsite-nav-heading"> <span class="devsite-nav-title" tooltip > <span class="devsite-nav-text" tooltip > Libraries </span> </span> </li> <li class="devsite-nav-item"> <a href="/reference/packages" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Android platform" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Android platform </span> </a> </li> <li class="devsite-nav-item"> <a href="/jetpack/androidx/explorer" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Jetpack libraries" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Jetpack libraries </span> </a> </li> <li class="devsite-nav-item"> <a href="/jetpack/androidx/releases/compose" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Compose libraries" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Compose libraries </span> </a> </li> <li class="devsite-nav-item"> <a href="https://developers.google.com/android/reference/packages" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Google Play services ↗️" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Google Play services ↗️ </span> </a> </li> <li class="devsite-nav-item"> <a href="https://play.google.com/sdks" class="devsite-nav-title gc-analytics-event " data-category="Site-Wide Custom Events" data-label="Responsive Tab: Google Play SDK index ↗️" track-type="navMenu" track-metadata-eventDetail="globalMenu" track-metadata-position="nav"> <span class="devsite-nav-text" tooltip > Google Play SDK index ↗️ </span> </a> </li> </ul> </div> </div> </nav> </devsite-book-nav> <section id="gc-wrapper"> <main role="main" class="devsite-main-content" has-book-nav has-sidebar > <div class="devsite-sidebar"> <div class="devsite-sidebar-content"> <devsite-toc class="devsite-nav" role="navigation" aria-label="On this page" depth="2" scrollbars ></devsite-toc> <devsite-recommendations-sidebar class="nocontent devsite-nav"> </devsite-recommendations-sidebar> </div> </div> <devsite-content> <article class="devsite-article"> <div class="devsite-banner devsite-banner-announcement nocontent" background="blue" > <div class="devsite-banner-message"> <div class="devsite-banner-message-text"> The Android 16 Developer Preview is now available. <a href="/about/versions/16">Try it out today</a> and let us know what you think! </div> </div> </div> <div class="devsite-article-meta nocontent" role="navigation"> <ul class="devsite-breadcrumb-list" aria-label="Breadcrumb"> <li class="devsite-breadcrumb-item "> <a href="https://developer.android.com/" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="1" track-type="globalNav" track-name="breadcrumb" track-metadata-position="1" track-metadata-eventdetail="Android Developers" > Android Developers </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developer.android.com/get-started" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="2" track-type="globalNav" track-name="breadcrumb" track-metadata-position="2" track-metadata-eventdetail="" > Essentials </a> </li> <li class="devsite-breadcrumb-item "> <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div> <a href="https://developer.android.com/about/versions" class="devsite-breadcrumb-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Breadcrumbs" data-value="3" track-type="globalNav" track-name="breadcrumb" track-metadata-position="3" track-metadata-eventdetail="" > Releases </a> </li> </ul> <devsite-thumb-rating position="header"> </devsite-thumb-rating> </div> <h1 class="devsite-page-title" tabindex="-1"> Features and APIs Overview </h1> <devsite-feature-tooltip ack-key="AckCollectionsBookmarkTooltipDismiss" analytics-category="Site-Wide Custom Events" analytics-action-show="Callout Profile displayed" analytics-action-close="Callout Profile dismissed" analytics-label="Create Collection Callout" class="devsite-page-bookmark-tooltip nocontent" dismiss-button="true" id="devsite-collections-dropdown" dismiss-button-text="Dismiss" close-button-text="Got it"> <devsite-bookmark></devsite-bookmark> <span slot="popout-heading"> Stay organized with collections </span> <span slot="popout-contents"> Save and categorize content based on your preferences. </span> </devsite-feature-tooltip> <div class="devsite-page-title-meta"><devsite-view-release-notes></devsite-view-release-notes></div> <devsite-toc class="devsite-nav" depth="2" devsite-toc-embedded > </devsite-toc> <devsite-recommendations-dropdown class="nocontent"></devsite-recommendations-dropdown> <div class="devsite-article-body clearfix "> <p>Android 15 introduces great features and APIs for developers. The following sections summarize these features to help you get started with the related APIs.</p> <p>For a detailed list of added, modified, and removed APIs, read the <a href="/sdk/api_diff/35/changes">API diff report</a>. For details on added APIs visit the <a href="/reference">Android API reference</a> — for Android 15, look for APIs that were added in API level 35. To learn about areas where platform changes might affect your apps, be sure to check out Android 15 behavior changes <a href="/about/versions/15/behavior-changes-15">for apps that target Android 15</a> and <a href="/about/versions/15/behavior-changes-all">for all apps</a>.</p> <h2 id="camera-media" data-text="Camera and media" tabindex="-1">Camera and media</h2> <p>Android 15 includes a variety of features that improve the camera and media experience and that give you access to tools and hardware to support creators in bringing their vision to life on Android.</p> <p>For more on the latest features and developer solutions for Android media and camera, see the <a href="https://io.google/2024/explore/25ff7e80-ca0b-4b3b-aa89-aa796618b3af/" class="external">Building modern Android media and camera experiences</a> talk from Google I/O.</p> <h3 id="low-light-boost" data-text="Low Light Boost" tabindex="-1">Low Light Boost</h3> <p>Android 15 introduces <em>Low Light Boost</em>, an auto-exposure mode available to both <a href="/media/camera/camera2">Camera 2</a> and the <a href="/reference/android/hardware/camera2/CameraExtensionCharacteristics#EXTENSION_NIGHT">night mode camera extension</a>. Low Light Boost adjusts the exposure of the Preview stream in low-light conditions. This is different from how the night mode camera extension creates still images, because night mode combines a burst of photos to create a single, enhanced image. While night mode works very well for creating a still image, it can't create a continuous stream of frames, but Low Light Boost can. Thus, Low Light Boost enables camera capabilities, such as:</p> <ul> <li>Providing an enhanced image preview, so users are better able to frame their low-light pictures</li> <li>Scanning QR codes in low light</li> </ul> <p>If you enable Low Light Boost, it automatically turns on when there's a low light level, and turns off when there's more light.</p> <p>Apps can record off the Preview stream in low-light conditions to save a brightened video.</p> <aside class="note"><strong>Note:</strong><span> Because Low Light Boost uses a different mechanism than night mode still capture, the two images won't look identical. Night mode still capture provides a better result when you just want to capture a single image, but Low Light Boost is able to show you enhanced images in real time.</span></aside> <p>For more information, see <a href="/media/camera/camera2/low-light-boost">Low Light Boost</a>.</p> <h3 id="camera-controls" data-text="In-app camera controls" tabindex="-1">In-app camera controls</h3> <p>Android 15 adds an extension for more control over the camera hardware and its algorithms on supported devices:</p> <ul> <li><strong>Advanced flash strength adjustments</strong> enabling precise control of flash intensity in both <a href="/reference/android/hardware/camera2/CameraCharacteristics#FLASH_SINGLE_STRENGTH_DEFAULT_LEVEL"><code translate="no" dir="ltr">SINGLE</code></a> and <a href="/reference/android/hardware/camera2/CameraCharacteristics#FLASH_TORCH_STRENGTH_DEFAULT_LEVEL"><code translate="no" dir="ltr">TORCH</code></a> modes while capturing images.</li> </ul> <h3 id="hdr-headroom" data-text="HDR headroom control" tabindex="-1">HDR headroom control</h3> <p>Android 15 chooses HDR headroom that is appropriate for the underlying device capabilities and bit-depth of the panel. For pages that have lots of SDR content, such as a messaging app displaying a single HDR thumbnail, this behavior can end up adversely influencing the perceived brightness of the SDR content. Android 15 lets you control the HDR headroom with <a href="/reference/kotlin/android/view/Window#setdesiredhdrheadroom"><code translate="no" dir="ltr">setDesiredHdrHeadroom</code></a> to strike a balance between SDR and HDR content.</p> <figure> <img src="/static/about/versions/15/images/hdr-headroom.png" alt=""> <figcaption>The brightness of SDR UI elements on the left screen appears to be more uniform than the brightness on the right screen, which simulates possible headroom issues when HDR and SDR content are mixed. By adjusting the HDR headroom, you can achieve a better balance between the SDR and HDR content.</figcaption> </figure> <h3 id="loudness-control" data-text="Loudness control" tabindex="-1">Loudness control</h3> <p><img src="/static/images/shared/bot-headphones-512px.png" alt width="312" class="attempt-right"></p> <p>Android 15 introduces support for the <a href="https://shop.cta.tech/products/loudness-standard-for-over-the-top-television-and-online-video-distribution-for-mobile-and-fixed-devices-ansi-cta-2075" class="external">CTA-2075</a> loudness standard to help you avoid audio loudness inconsistencies and ensure users don't have to constantly adjust volume when switching between content. The system leverages known characteristics of the output devices (headphones and speaker) along with loudness metadata available in AAC audio content to intelligently adjust the audio loudness and dynamic range compression levels.</p> <p>To enable this feature, you need to ensure loudness metadata is available in your AAC content and enable the platform feature in your app. For this, you instantiate a <a href="/reference/android/media/LoudnessCodecController"><code translate="no" dir="ltr">LoudnessCodecController</code></a> object by calling its <a href="/reference/android/media/LoudnessCodecController#create(int)">create</a> factory method with the audio session ID from the associated <a href="/reference/android/media/AudioTrack"><code translate="no" dir="ltr">AudioTrack</code></a>; this automatically starts applying audio updates. You can pass an <a href="/reference/android/media/LoudnessCodecController.OnLoudnessCodecUpdateListener"><code translate="no" dir="ltr">OnLoudnessCodecUpdateListener</code></a> to modify or filter loudness parameters before they are applied on the <a href="/reference/android/media/MediaCodec"><code translate="no" dir="ltr">MediaCodec</code></a>.</p> <pre class="prettyprint lang-kotlin" translate="no" dir="ltr"><code translate="no" dir="ltr">// Media contains metadata of type MPEG_4 OR MPEG_D val mediaCodec = … val audioTrack = AudioTrack.Builder() .setSessionId(sessionId) .build() ... // Create new loudness controller that applies the parameters to the MediaCodec try { val lcController = LoudnessCodecController.create(mSessionId) // Starts applying audio updates for each added MediaCodec } </code></pre> <p>AndroidX media3 ExoPlayer will also be updated to use the <code translate="no" dir="ltr">LoudnessCodecController</code> APIs for a seamless app integration.</p> <h3 id="virtual-midi-devices" data-text="Virtual MIDI 2.0 devices" tabindex="-1">Virtual MIDI 2.0 devices</h3> <p>Android 13 added support for connecting to <a href="/reference/android/media/midi/package-summary">MIDI 2.0 devices using USB</a>, which communicate using Universal MIDI Packets (UMP). Android 15 extends <a href="/reference/android/media/midi/MidiUmpDeviceService">UMP support to virtual MIDI apps</a>, enabling composition apps to control synthesizer apps as a virtual MIDI 2.0 device just like they would with an USB MIDI 2.0 device.</p> <h3 id="av1-encoding" data-text="More efficient AV1 software decoding" tabindex="-1">More efficient AV1 software decoding</h3> <p><img src="/static/about/versions/15/images/dav1d.png" alt="dav1d logo" class="attempt-right no-filter"> </p> <p><a href="https://code.videolan.org/videolan/dav1d" class="external">dav1d</a>, the popular AV1 software decoder from VideoLAN is available for Android devices that don't support AV1 decode in hardware. dav1d is up to 3x more performant than the legacy AV1 software decoder, enabling HD AV1 playback for more users, including some low and mid tier devices.</p> <p>Your app needs to opt-in to using dav1d by invoking it by name <code translate="no" dir="ltr">"c2.android.av1-dav1d.decoder"</code>. dav1d will be made the default AV1 software decoder in a subsequent update. This support is standardized and backported to Android 11 devices that receive Google Play system updates.</p> <h2 id="developer-productivity" data-text="Developer productivity and tools" tabindex="-1">Developer productivity and tools</h2> <p>While most of our work to improve your productivity centers around tools like <a href="/studio">Android Studio</a>, <a href="/jetpack/compose">Jetpack Compose</a>, and the <a href="/jetpack">Android Jetpack</a> libraries, we always look for ways in the platform to help you more easily realize your vision.</p> <h3 id="core-libraries" data-text="OpenJDK 17 updates" tabindex="-1">OpenJDK 17 updates</h3> <p>Android 15 continues the work of refreshing Android's core libraries to align with the features in the latest OpenJDK LTS releases.</p> <p>The following key features and improvements are included:</p> <ul> <li>Quality-of-life improvements around <a href="/reference/java/nio/ByteBuffer#get%28int,%20byte%5B%5D%29">NIO buffers</a></li> <li><a href="/reference/java/util/stream/DoubleStream.DoubleMapMultiConsumer">Streams</a></li> <li>Additional <a href="/sdk/api_diff/35-incr/changes/java.lang.Math"><code translate="no" dir="ltr">math</code></a> and <a href="/sdk/api_diff/35-incr/changes/java.lang.StrictMath"><code translate="no" dir="ltr">strictmath</code></a> methods</li> <li><a href="/sdk/api_diff/35-incr/changes/pkg_java.util"><code translate="no" dir="ltr">util</code></a> package updates including sequenced <a href="/reference/java/util/SequencedCollection"><code translate="no" dir="ltr">collection</code></a>, <a href="/reference/java/util/SequencedMap"><code translate="no" dir="ltr">map</code></a>, and <a href="/reference/java/util/SequencedSet"><code translate="no" dir="ltr">set</code></a></li> <li><a href="/sdk/api_diff/35-incr/changes/java.util.zip.Deflater"><code translate="no" dir="ltr">ByteBuffer</code> support in <code translate="no" dir="ltr">Deflater</code></a></li> <li>Security updates such as <a href="/reference/javax/security/auth/x500/X500PrivateCredential"><code translate="no" dir="ltr">X500PrivateCredential</code></a> and <a href="/sdk/api_diff/35-incr/changes/pkg_java.security.spec">security key updates</a></li> </ul> <p>These APIs are updated on <a href="https://android-developers.googleblog.com/2023/11/the-secret-to-androids-improved-memory-latest-android-runtime-update.html">over a billion devices running Android 12 (API level 31) and higher through Google Play System updates</a>, so you can target the latest programming features.</p> <h3 id="pdf" data-text="PDF improvements" tabindex="-1">PDF improvements</h3> <p>Android 15 includes substantial improvements to the <a href="/reference/android/graphics/pdf/PdfRenderer"><code translate="no" dir="ltr">PdfRenderer</code></a> APIs. Apps can incorporate advanced features such as rendering <a href="/reference/android/graphics/pdf/LoadParams">password-protected files</a>, annotations, <a href="/reference/android/graphics/pdf/models/FormEditRecord">form editing</a>, <a href="/reference/android/graphics/pdf/PdfRenderer.Page#searchText(java.lang.String)">searching</a>, and <a href="/reference/android/graphics/pdf/PdfRenderer.Page#selectContent(android.graphics.pdf.models.selection.SelectionBoundary,%20android.graphics.pdf.models.selection.SelectionBoundary,%20boolean)">selection</a> with copy. Linearized PDF optimizations are supported to speed local PDF viewing and reduce resource use. The <a href="/jetpack/androidx/releases/pdf">Jetpack PDF library</a> uses these APIs to simplify adding PDF viewing capabilities to your app.</p> <figure> <img src="/static/about/versions/15/images/pdf-rendering.png" alt=""> <figcaption>The latest updates to PDF rendering include features such as searching an embedded PDF file.</figcaption> </figure> <p>The <code translate="no" dir="ltr">PdfRenderer</code> has been moved to a module that can be updated using Google Play system updates independent of the platform release, and we're supporting these changes back to Android 11 (API level 30) by creating a compatible pre-Android 15 version of the API surface, called <a href="/reference/android/graphics/pdf/PdfRendererPreV"><code translate="no" dir="ltr">PdfRendererPreV</code></a>.</p> <h3 id="language-switching" data-text="Automatic language switching refinements" tabindex="-1">Automatic language switching refinements</h3> <p>Android 14 added on-device, multi-language recognition in audio with automatic switching between languages, but this can cause words to get dropped, especially when languages switch with less of a pause between the two utterances. Android 15 adds additional controls to help apps tune this switching to their use case. <a href="/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS"><code translate="no" dir="ltr">EXTRA_LANGUAGE_SWITCH_INITIAL_ACTIVE_DURATION_TIME_MILLIS</code></a> confines the automatic switching to the beginning of the audio session, while <a href="/reference/android/speech/RecognizerIntent#EXTRA_LANGUAGE_SWITCH_MAX_SWITCHES"><code translate="no" dir="ltr">EXTRA_LANGUAGE_SWITCH_MATCH_SWITCHES</code></a> deactivates the language switching after a defined number of switches. These options are particularly useful if you expect that there will be a single language spoken during the session that should be autodetected.</p> <h3 id="opentype-variable-font-api" data-text="Improved OpenType Variable Font API" tabindex="-1">Improved OpenType Variable Font API</h3> <p>Android 15 improves the usability of the OpenType variable font. You can create a <a href="/reference/android/graphics/fonts/FontFamily"><code translate="no" dir="ltr">FontFamily</code></a> instance from a variable font without specifying weight axes with the <a href="/reference/android/graphics/fonts/FontFamily.Builder#buildVariableFamily()"><code translate="no" dir="ltr">buildVariableFamily</code></a> API. The text renderer overrides the value of <code translate="no" dir="ltr">wght</code> axis to match the displaying text.</p> <p>Using the API simplifies the code for creating a <a href="/reference/android/graphics/Typeface"><code translate="no" dir="ltr">Typeface</code></a> considerably:</p> <div> <div class="ds-selector-tabs"><section><h3 id="kotlin" data-text="Kotlin" tabindex="-1">Kotlin</h3> <pre class="prettyprint lang-kotlin" translate="no" dir="ltr"> val newTypeface = Typeface.CustomFallbackBuilder( FontFamily.Builder( Font.Builder(assets, "RobotoFlex.ttf").build()) .buildVariableFamily()) .build() </pre> </section><section><h3 id="java" data-text="Java" tabindex="-1">Java</h3> <pre class="prettyprint lang-java" translate="no" dir="ltr"> Typeface newTypeface = Typeface.CustomFallbackBuilder( new FontFamily.Builder( new Font.Builder(assets, "RobotoFlex.ttf").build()) .buildVariableFamily()) .build(); </pre> </section></div></div> <p>Previously, to create the same <code translate="no" dir="ltr">Typeface</code>, you would need much more code:</p> <div> <div class="ds-selector-tabs"><section><h3 id="kotlin" data-text="Kotlin" tabindex="-1">Kotlin</h3> <pre class="prettyprint lang-kotlin" translate="no" dir="ltr"> val oldTypeface = Typeface.CustomFallbackBuilder( FontFamily.Builder( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 400") .setWeight(400) .build()) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 100") .setWeight(100) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 200") .setWeight(200) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 300") .setWeight(300) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 500") .setWeight(500) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 600") .setWeight(600) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 700") .setWeight(700) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 800") .setWeight(800) .build() ) .addFont( Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 900") .setWeight(900) .build() ).build() ).build() </pre> </section><section><h3 id="java" data-text="Java" tabindex="-1">Java</h3> <pre class="prettyprint lang-java" translate="no" dir="ltr"> Typeface oldTypeface = new Typeface.CustomFallbackBuilder( new FontFamily.Builder( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 400") .setWeight(400) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 100") .setWeight(100) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 200") .setWeight(200) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 300") .setWeight(300) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 500") .setWeight(500) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 600") .setWeight(600) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 700") .setWeight(700) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 800") .setWeight(800) .build() ) .addFont( new Font.Builder(assets, "RobotoFlex.ttf") .setFontVariationSettings("'wght' 900") .setWeight(900) .build() ) .build() ).build(); </pre> </section></div></div> <p>Here's an example of how a <code translate="no" dir="ltr">Typeface</code> created with both the old and new APIs renders:</p> <p><img src="/static/about/versions/15/images/opentype-variable-font.png" alt="An example of how Typeface rendering differs using new and old APIs" class="screenshot"> </p> <p>In this example, the <code translate="no" dir="ltr">Typeface</code> created with the old API doesn't have the capability to create accurate font weights for the 350, 450, 550 and 650 <a href="/reference/android/graphics/fonts/Font"><code translate="no" dir="ltr">Font</code></a> instances, so the renderer falls back to the closest weight. So in this case, 300 is rendered instead of 350, 400 is rendered instead of 450, and so on. By contrast, the <code translate="no" dir="ltr">Typeface</code> created with the new APIs dynamically creates a <code translate="no" dir="ltr">Font</code> instance for a given weight, so accurate weights are rendered for 350, 450, 550, and 650 as well.</p> <h3 id="line-breaks" data-text="Granular line break controls" tabindex="-1">Granular line break controls</h3> <p>Starting in Android 15, a <a href="/reference/android/widget/TextView"><code translate="no" dir="ltr">TextView</code></a> and the underlying line breaker can preserve the given portion of text in the same line to improve readability. You can take advantage of this line break customization by using the <code translate="no" dir="ltr"><nobreak></code> tag in string resources or <a href="/reference/android/text/style/LineBreakConfigSpan#createNoBreakSpan()"><code translate="no" dir="ltr">createNoBreakSpan</code></a>. Similarly, you can preserve words from hyphenation by using the <code translate="no" dir="ltr"><nohyphen></code> tag or <a href="/reference/android/text/style/LineBreakConfigSpan#createNoHyphenationSpan()"><code translate="no" dir="ltr">createNoHyphenationSpan</code></a>.</p> <p>For example, the following string resource doesn't include a line break, and renders with the text "Pixel 8 Pro." breaking in an undesirable place:</p> <pre class="prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr"><resources> <string name="pixel8pro">The power and brains behind Pixel 8 Pro.</string> </resources> </code></pre> <p>In contrast, this string resource includes the <code translate="no" dir="ltr"><nobreak></code> tag, which wraps the phrase "Pixel 8 Pro." and prevents line breaks:</p> <pre class="prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr"><resources> <string name="pixel8pro">The power and brains behind <nobreak>Pixel 8 Pro.</nobreak></string> </resources> </code></pre> <p>The difference in how these strings are rendered is shown in the following images:</p> <div class="android-caption android-caption-grid"> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/line-breaks-none.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for a line of text where the phrase "Pixel 8 Pro." isn't wrapped using a <code translate="no" dir="ltr"><nobreak></code> tag.</div> </div> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/line-breaks-included.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for the same line of text where the phrase "Pixel 8 Pro." is wrapped using a <code translate="no" dir="ltr"><nobreak></code> tag.</div> </div> </div> <h3 id="app-archiving" data-text="App archiving" tabindex="-1">App archiving</h3> <p><a href="https://android-developers.googleblog.com/2023/04/reduce-uninstalls-for-your-app-with-auto-archive.html" class="external">Android and Google Play announced support for app archiving last year</a>, allowing users to free up space by partially removing infrequently used apps from the device that were published using Android App Bundle on Google Play. Android 15 includes OS level support for app archiving and unarchiving, making it easier for all app stores to implement it.</p> <p>Apps with the <a href="/reference/android/Manifest.permission#REQUEST_DELETE_PACKAGES"><code translate="no" dir="ltr">REQUEST_DELETE_PACKAGES</code></a> permission can call the <code translate="no" dir="ltr">PackageInstaller</code> <a href="/reference/android/content/pm/PackageInstaller#requestArchive(java.lang.String,%20android.content.IntentSender)"><code translate="no" dir="ltr">requestArchive</code></a> method to request archiving an installed app package, which removes the APK and any cached files, but persists user data. Archived apps are returned as displayable apps through the <a href="/reference/android/content/pm/LauncherApps"><code translate="no" dir="ltr">LauncherApps</code></a> APIs; users will see a UI treatment to highlight that those apps are archived. If a user taps on an archived app, the responsible installer will get a request to <a href="/reference/android/content/pm/PackageInstaller#requestUnarchive(java.lang.String,%20android.content.IntentSender)">unarchive</a> it, and the restoration process can be monitored by the <a href="/reference/android/content/Intent#ACTION_PACKAGE_ADDED"><code translate="no" dir="ltr">ACTION_PACKAGE_ADDED</code></a> broadcast.</p> <h2 id="graphics" data-text="Graphics" tabindex="-1">Graphics</h2> <p>Android 15 brings the latest graphics improvements, including ANGLE and additions to the Canvas graphics system.</p> <h3 id="modern-gpu-apis" data-text="Modernizing Android's GPU access" tabindex="-1">Modernizing Android's GPU access</h3> <p><img src="/static/about/versions/15/images/vulkan.svg" alt="Vulkan logo" class="attempt-right"> </p> <p>Android hardware has evolved quite a bit from the early days where the core OS would run on a single CPU and GPUs were accessed using APIs based on fixed-function pipelines. The <a href="/ndk/guides/graphics">Vulkan® graphics API</a> has been available in the <a href="/ndk">NDK</a> since Android 7.0 (API level 24) with a lower-level abstraction that better reflects modern GPU hardware, scales better to support multiple CPU cores, and offers reduced CPU driver overhead — leading to improved app performance. Vulkan is supported by all modern game engines.</p> <p>Vulkan is Android's preferred interface to the GPU. Therefore, Android 15 includes <a href="https://chromium.googlesource.com/angle/angle" class="external">ANGLE</a> as an optional layer for running OpenGL® ES on top of Vulkan. Moving to ANGLE will standardize the Android OpenGL implementation for improved compatibility, and, in some cases, improved performance. You can test out your OpenGL ES app stability and performance with ANGLE by enabling the developer option in <strong>Settings -> System -> Developer Options -> Experimental: Enable ANGLE</strong> on Android 15.</p> <h4 id="gpu-api-roadmap" data-text="The Android ANGLE on Vulkan roadmap" tabindex="-1">The Android ANGLE on Vulkan roadmap</h4> <figure> <img src="/static/about/versions/15/images/angle-vulkan-roadmap.png" alt="Roadmap of upcoming changes to the Android GPU APIs."> <figcaption></figcaption> </figure> <p>As part of streamlining our GPU stack, going forward we will be shipping ANGLE as the GL system driver on more new devices, with the future expectation that OpenGL/ES will be only available through ANGLE. That being said, we plan to <strong>continue support for OpenGL ES on all devices</strong>.</p> <h4 id="gpu-apis-next-steps" data-text="Recommended next steps" tabindex="-1">Recommended next steps</h4> <p>Use the developer options to select the ANGLE driver for OpenGL ES and test your app. For new projects, we strongly encourage using Vulkan for C/C++.</p> <h3 id="canvas" data-text="Improvements for Canvas" tabindex="-1">Improvements for Canvas</h3> <p>Android 15 continues our modernization of Android's Canvas graphics system with additional capabilities:</p> <ul> <li><a href="/reference/android/graphics/Matrix44"><code translate="no" dir="ltr">Matrix44</code></a> provides a 4x4 matrix for transforming coordinates that should be used when you want to manipulate the canvas in 3D.</li> <li><a href="/reference/android/graphics/Canvas#clipShader(android.graphics.Shader)"><code translate="no" dir="ltr">clipShader</code></a> intersects the current clip with the specified shader, while <a href="/reference/android/graphics/Canvas#clipOutShader(android.graphics.Shader)"><code translate="no" dir="ltr">clipOutShader</code></a> sets the clip to the difference of the current clip and the shader, each treating the shader as an alpha mask. This supports the drawing of complex shapes efficiently.</li> </ul> <h2 id="performance-battery" data-text="Performance and battery" tabindex="-1">Performance and battery</h2> <p>Android continues its focus on helping you improve the performance and quality of your apps. Android 15 introduces APIs that help make tasks in your app more efficient to execute, optimize app performance, and gather insights about your apps.</p> <p>For battery-efficient best practices, debugging network and power usage, and detail on how we're improving battery efficiency of background work in Android 15 and recent versions of Android, see the <a href="https://io.google/2024/explore/4ad3e7fe-ca50-4c24-8c48-5c04ee39e4d0/" class="external">Improving battery efficiency of background work on Android</a> talk from Google I/O.</p> <h3 id="app-start-info" data-text="ApplicationStartInfo API" tabindex="-1">ApplicationStartInfo API</h3> <p>In previous versions of Android, app startup has been a bit of a mystery. It was challenging to determine within your app whether it started from a cold, warm, or hot state. It was also difficult to know how long your app spent during the various launch phases: forking the process, calling <code translate="no" dir="ltr">onCreate</code>, drawing the first frame, and more. When your <code translate="no" dir="ltr">Application</code> class was instantiated, you had no way of knowing whether the app started from a broadcast, a content provider, a job, a backup, boot complete, an alarm, or an <code translate="no" dir="ltr">Activity</code>.</p> <p>The <a href="/reference/android/app/ApplicationStartInfo"><code translate="no" dir="ltr">ApplicationStartInfo</code></a> API on Android 15 provides all of this and more. You can even choose to add your own timestamps into the flow to help collect timing data in one place. In addition to collecting metrics, you can use <code translate="no" dir="ltr">ApplicationStartInfo</code> to help directly optimize app startup; for example, you can eliminate the costly instantiation of UI-related libraries within your <code translate="no" dir="ltr">Application</code> class when your app is starting up due to a broadcast.</p> <h3 id="app-size-info" data-text="Detailed app size information" tabindex="-1">Detailed app size information</h3> <p>Since Android 8.0 (API level 26), Android has included the <a href="/reference/android/app/usage/StorageStats#getAppBytes()"><code translate="no" dir="ltr">StorageStats.getAppBytes</code></a> API that summarizes the installed size of an app as a single number of bytes, which is a sum of the APK size, the size of files extracted from the APK, and files that were generated on the device such as ahead-of-time (AOT) compiled code. This number is not very insightful in terms of how your app is using storage.</p> <p>Android 15 adds the <a href="/reference/android/app/usage/StorageStats#getAppBytesByDataType(int)"><code translate="no" dir="ltr">StorageStats.getAppBytesByDataType([type])</code></a> API, which lets you get insight into how your app is using up all that space, including APK file splits, AOT and speedup related code, dex metadata, libraries, and guided profiles.</p> <h3 id="app-managed-profiling" data-text="App-managed profiling" tabindex="-1">App-managed profiling</h3> <p>Android 15 includes the <a href="/reference/android/os/ProfilingManager"><code translate="no" dir="ltr">ProfilingManager</code></a> class, which lets you collect profiling information from within your app such as heap dumps, heap profiles, stack sampling, and more. It provides a callback to your app with a supplied tag to identify the output file, which is delivered to your app's files directory. The API does rate limiting to minimize the performance impact.</p> <p>To simplify constructing profiling requests in your app, we recommend using the corresponding <a href="/reference/androidx/core/os/Profiling"><code translate="no" dir="ltr">Profiling</code></a> AndroidX API, available in <a href="/jetpack/androidx/releases/core#1.15.0-rc01">Core 1.15.0-rc01</a> or higher.</p> <h3 id="sqlite" data-text="SQLite database improvements" tabindex="-1">SQLite database improvements</h3> <p>Android 15 introduces SQLite APIs that expose advanced features from the underlying SQLite engine that target specific performance issues that can manifest in apps. These APIs are included with the <a href="/reference/android/database/sqlite/package-summary">update of SQLite to version 3.44.3</a>.</p> <p>Developers should consult <a href="/topic/performance/sqlite-performance-best-practices">best practices for SQLite performance</a> to get the most out of their SQLite database, especially when working with large databases or when running latency-sensitive queries.</p> <ul> <li><strong>Read-only deferred transactions</strong>: when issuing transactions that are read-only (don't include write statements), use <a href="/reference/kotlin/android/database/sqlite/SQLiteDatabase#begintransactionreadonly"><code translate="no" dir="ltr">beginTransactionReadOnly()</code></a> and <a href="/reference/kotlin/android/database/sqlite/SQLiteDatabase#begintransactionreadonly"><code translate="no" dir="ltr">beginTransactionWithListenerReadOnly(SQLiteTransactionListener)</code></a> to issue read-only <code translate="no" dir="ltr">DEFERRED</code> transactions. Such transactions can run concurrently with each other, and if the database is in WAL mode, they can run concurrently with <code translate="no" dir="ltr">IMMEDIATE</code> or <code translate="no" dir="ltr">EXCLUSIVE</code> transactions.</li> <li><strong>Row counts and IDs</strong>: APIs were added to retrieve the count of changed rows or the last inserted row ID without issuing an additional query. <a href="/reference/kotlin/android/database/sqlite/SQLiteDatabase#getlastchangedrowcount"><code translate="no" dir="ltr">getLastChangedRowCount()</code></a> returns the number of rows that were inserted, updated, or deleted by the most recent SQL statement within the current transaction, while <a href="/reference/kotlin/android/database/sqlite/SQLiteDatabase#gettotalchangedrowcount"><code translate="no" dir="ltr">getTotalChangedRowCount()</code></a> returns the count on the current connection. <a href="/reference/kotlin/android/database/sqlite/SQLiteDatabase#getlastinsertrowid"><code translate="no" dir="ltr">getLastInsertRowId()</code></a> returns the <code translate="no" dir="ltr">rowid</code> of the last row to be inserted on the current connection.</li> <li><strong>Raw statements</strong>: issue a raw SQlite statement, bypassing convenience wrappers and any additional processing overhead that they may incur.</li> </ul> <h3 id="dynamic-performance" data-text="Android Dynamic Performance Framework updates" tabindex="-1">Android Dynamic Performance Framework updates</h3> <p>Android 15 continues our investment in the <a href="/games/optimize/adpf">Android Dynamic Performance Framework (ADPF)</a>, a set of APIs that allow games and performance intensive apps to interact more directly with power and thermal systems of Android devices. On supported devices, Android 15 adds ADPF capabilities:</p> <ul> <li>A <a href="/reference/android/os/PerformanceHintManager.Session#setPreferPowerEfficiency%28boolean%29">power-efficiency mode</a> for hint sessions to indicate that their associated threads should prefer power saving over performance, great for long-running background workloads.</li> <li>GPU and CPU work durations can both be <a href="/reference/android/os/PerformanceHintManager.Session#reportActualWorkDuration%28android.os.WorkDuration%29">reported</a> in hint sessions, allowing the system to adjust CPU and GPU frequencies together to best meet workload demands.</li> <li><a href="/reference/android/os/PowerManager#getThermalHeadroomThresholds%28%29">Thermal headroom thresholds</a> to interpret possible thermal throttling status based on headroom prediction.</li> </ul> <p>To learn more about how to use ADPF in your apps and games, <a href="/games/optimize/adpf">head over to the documentation</a>.</p> <h2 id="privacy" data-text="Privacy" tabindex="-1">Privacy</h2> <p>Android 15 includes a variety of features that help app developers protect user privacy.</p> <h3 id="screen-recording-detection" data-text="Screen recording detection" tabindex="-1">Screen recording detection</h3> <p>Android 15 adds <a href="/reference/android/view/WindowManager#addScreenRecordingCallback(java.util.concurrent.Executor,%20java.util.function.Consumer%3Cjava.lang.Integer%3E)">support for apps</a> to detect that they are being recorded. A callback is invoked whenever the app transitions between being visible or invisible within a screen recording. An app is considered visible if activities owned by the registering process's UID are being recorded. This way, if your app is performing a sensitive operation, you can inform the user that they're being recorded.</p> <div></div><devsite-code><pre class="devsite-click-to-copy" translate="no" dir="ltr" is-upgraded syntax="Kotlin"><code translate="no" dir="ltr"><span class="devsite-syntax-kd">val</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nv">mCallback</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">Consumer<Int></span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">state</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">-</span>> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">if</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">state</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">==</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">SCREEN_RECORDING_STATE_VISIBLE</span><span class="devsite-syntax-p">)</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-c1">// We're being recorded</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">else</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-c1">// We're not being recorded</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">}</span> <span class="devsite-syntax-p">}</span> <span class="devsite-syntax-kd">override</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-kd">fun</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nf">onStart</span><span class="devsite-syntax-p">()</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">super</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">onStart</span><span class="devsite-syntax-p">()</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-kd">val</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nv">initialState</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">windowManager</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">addScreenRecordingCallback</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">mainExecutor</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">mCallback</span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">mCallback</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">accept</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">initialState</span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-p">}</span> <span class="devsite-syntax-kd">override</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-kd">fun</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nf">onStop</span><span class="devsite-syntax-p">()</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">super</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">onStop</span><span class="devsite-syntax-p">()</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">windowManager</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">removeScreenRecordingCallback</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">mCallback</span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-p">}</span> </code></pre></devsite-code> <h3 id="expanded-intentfilter" data-text="Expanded IntentFilter capabilities" tabindex="-1">Expanded IntentFilter capabilities</h3> <p>Android 15 builds in support for more precise <code translate="no" dir="ltr">Intent</code> resolution through <a href="/reference/android/content/UriRelativeFilterGroup"><code translate="no" dir="ltr">UriRelativeFilterGroup</code></a>, which contains a set of <a href="/reference/android/content/UriRelativeFilter"><code translate="no" dir="ltr">UriRelativeFilter</code></a> objects that form a set of <code translate="no" dir="ltr">Intent</code> matching rules that must each be satisfied, including URL query parameters, URL fragments, and blocking or exclusion rules.</p> <p>These rules can be defined in the <code translate="no" dir="ltr">AndroidManifest</code> XML file with the <code translate="no" dir="ltr"><uri-relative-filter-group></code> tag, which can optionally include an <code translate="no" dir="ltr">android:allow</code> tag. These tags can contain <code translate="no" dir="ltr"><data></code> tags that use existing data tag attributes as well as the <code translate="no" dir="ltr">android:query</code> and <code translate="no" dir="ltr">android:fragment</code> attributes.</p> <p>Here's an example of the <code translate="no" dir="ltr">AndroidManifest</code> syntax:</p> <pre class="prettyprint lang-xml" translate="no" dir="ltr"><code translate="no" dir="ltr"><intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:domain="astore.com" /> <uri-relative-filter-group> <data android:pathPrefix="/auth" /> <data android:query="region=na" /> </uri-relative-filter-group> <uri-relative-filter-group android:allow="false"> <data android:pathPrefix="/auth" /> <data android:query="mobileoptout=true" /> </uri-relative-filter-group> <uri-relative-filter-group android:allow="false"> <data android:pathPrefix="/auth" /> <data android:fragmentPrefix="faq" /> </uri-relative-filter-group> </intent-filter> </code></pre> <h3 id="private-space" data-text="Private space" tabindex="-1">Private space</h3> <figure class="attempt-right"> <video poster="/about/versions/15/images/private-space.png" autoplay loop muted controls> <source src="/static/about/versions/15/images/private-space.mp4" type="video/mp4"> <img src="/static/about/versions/15/images/private-space.png" alt> </video> <figcaption>The private space can be unlocked and locked to show or hide sensitive apps on a device.</figcaption> </figure> <p>Private space lets users create a separate space on their device where they can keep sensitive apps away from prying eyes, under an additional layer of authentication. The private space uses a separate user profile. The user can choose to use the device lock or a separate lock factor for the private space.</p> <p>Apps in the private space show up in a separate container in the launcher, and are hidden from the recents view, notifications, settings, and from other apps when the private space is locked. User-generated and downloaded content (such as media or files) and accounts are separated between the private space and the main space. The <a href="/training/sharing/send">system sharesheet</a> and the <a href="/training/data-storage/shared/photopicker">photo picker</a> can be used to give apps access to content across spaces when the private space is unlocked.</p> <p>Users can't move existing apps and their data into the private space. Instead, users select an install option in the private space to install an app using whichever app store they prefer. Apps in the private space are installed as separate copies from any apps in the main space (new copies of the same app).</p> <p>When a user locks the private space, the profile is stopped. While the profile is stopped, apps in the private space are no longer active and can't perform foreground or background activities, including showing notifications.</p> <p>We recommend that you test your app with private space to make sure your app works as expected, especially if your app falls into one of the following categories:</p> <ul> <li><a href="/about/versions/15/behavior-changes-all#private-space-work-profiles">Apps with logic for work profiles</a> that assumes that any installed copies of their app that aren't in the main profile are in the work profile.</li> <li><a href="/about/versions/15/behavior-changes-all#private-space-medical-apps">Medical apps</a></li> <li><a href="/about/versions/15/behavior-changes-all#private-space-launcher-apps">Launcher apps</a></li> <li><a href="/about/versions/15/behavior-changes-all#private-space-app-store-apps">App store apps</a></li> </ul> <h3 id="selected-photos-access" data-text="Query most-recent user selection for Selected Photos Access" tabindex="-1">Query most-recent user selection for Selected Photos Access</h3> <p>Apps can now highlight only the most-recently-selected photos and videos when <a href="/about/versions/14/changes/partial-photo-video-access">partial access</a> to media permissions is granted. This feature can improve the user experience for apps that frequently request access to photos and videos. To use this feature in your app, enable the <a href="/reference/android/provider/MediaStore#QUERY_ARG_LATEST_SELECTION_ONLY"><code translate="no" dir="ltr">QUERY_ARG_LATEST_SELECTION_ONLY</code></a> argument when querying <a href="/reference/android/provider/MediaStore"><code translate="no" dir="ltr">MediaStore</code></a> through <a href="/reference/android/content/ContentResolver"><code translate="no" dir="ltr">ContentResolver</code></a>.</p> <div> <div class="ds-selector-tabs"><section><h3 id="kotlin" data-text="Kotlin" tabindex="-1">Kotlin</h3> <div></div><devsite-code><pre class="devsite-click-to-copy" translate="no" dir="ltr" is-upgraded syntax="Kotlin"><span class="devsite-syntax-kd">val</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nv">externalContentUri</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">Files</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">getContentUri</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-s">"external"</span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-kd">val</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nv">mediaColumns</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">arrayOf</span><span class="devsite-syntax-p">(</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">_ID</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">DISPLAY_NAME</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MIME_TYPE</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-p">)</span> <span class="devsite-syntax-kd">val</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-nv">queryArgs</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">bundleOf</span><span class="devsite-syntax-p">(</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-c1">// Return only items from the last selection (selected photos access)</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">QUERY_ARG_LATEST_SELECTION_ONLY</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">to</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-kc">true</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-c1">// Sort returned items chronologically based on when they were added to the device's storage</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">QUERY_ARG_SQL_SORT_ORDER</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">to</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s">"</span><span class="devsite-syntax-si">${</span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">DATE_ADDED</span><span class="devsite-syntax-si">}</span><span class="devsite-syntax-s"> DESC"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">QUERY_ARG_SQL_SELECTION</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">to</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s">"</span><span class="devsite-syntax-si">${</span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE</span><span class="devsite-syntax-si">}</span><span class="devsite-syntax-s"> = ? OR </span><span class="devsite-syntax-si">${</span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE</span><span class="devsite-syntax-si">}</span><span class="devsite-syntax-s"> = ?"</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">QUERY_ARG_SQL_SELECTION_ARGS</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">to</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">arrayOf</span><span class="devsite-syntax-p">(</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE_IMAGE</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">toString</span><span class="devsite-syntax-p">(),</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE_VIDEO</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">toString</span><span class="devsite-syntax-p">()</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-p">)</span></pre></devsite-code> </section><section><h3 id="java" data-text="Java" tabindex="-1">Java</h3> <div></div><devsite-code><pre class="devsite-click-to-copy" translate="no" dir="ltr" is-upgraded syntax="Java"><span class="devsite-syntax-n">Uri</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">externalContentUri</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">Files</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">getContentUri</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-s">"external"</span><span class="devsite-syntax-p">);</span> <span class="devsite-syntax-n">String</span><span class="devsite-syntax-o">[]</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">mediaColumns</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">_ID</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">DISPLAY_NAME</span><span class="devsite-syntax-p">,</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MIME_TYPE</span> <span class="devsite-syntax-p">};</span> <span class="devsite-syntax-n">Bundle</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">queryArgs</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">=</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">new</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">Bundle</span><span class="devsite-syntax-p">();</span> <span class="devsite-syntax-n">queryArgs</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">putBoolean</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">QUERY_ARG_LATEST_SELECTION_ONLY</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-kc">true</span><span class="devsite-syntax-p">);</span> <span class="devsite-syntax-n">queryArgs</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">putString</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">QUERY_ARG_SQL_SORT_ORDER</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">DATE_ADDED</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">+</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s">" DESC"</span><span class="devsite-syntax-p">);</span> <span class="devsite-syntax-n">queryArgs</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">putString</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">QUERY_ARG_SQL_SELECTION</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">+</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s">" = ? OR "</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">+</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-o">+</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-s">" = ?"</span><span class="devsite-syntax-p">);</span> <span class="devsite-syntax-n">queryArgs</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">putStringArray</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">MediaStore</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">QUERY_ARG_SQL_SELECTION_ARGS</span><span class="devsite-syntax-p">,</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-k">new</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">String</span><span class="devsite-syntax-o">[]</span><span class="devsite-syntax-w"> </span><span class="devsite-syntax-p">{</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">String</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">valueOf</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE_IMAGE</span><span class="devsite-syntax-p">),</span> <span class="devsite-syntax-w"> </span><span class="devsite-syntax-n">String</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">valueOf</span><span class="devsite-syntax-p">(</span><span class="devsite-syntax-n">FileColumns</span><span class="devsite-syntax-p">.</span><span class="devsite-syntax-na">MEDIA_TYPE_VIDEO</span><span class="devsite-syntax-p">)</span> <span class="devsite-syntax-p">});</span></pre></devsite-code> </section></div></div> <h3 id="privacy-sandbox" data-text="Privacy Sandbox on Android" tabindex="-1">Privacy Sandbox on Android</h3> <p>Android 15 includes the latest Android Ad Services extensions, incorporating the latest version of the <a href="/design-for-safety/privacy-sandbox">Privacy Sandbox on Android</a>. This addition is part of our work to develop technologies that improve user privacy and enable effective, personalized advertising experiences for mobile apps. Our <a href="/design-for-safety/privacy-sandbox/program-overview">privacy sandbox page</a> has more information about the Privacy Sandbox on Android developer preview and beta programs to help you get started.</p> <h3 id="health-connect" data-text="Health Connect" tabindex="-1">Health Connect</h3> <p>Android 15 integrates the latest extensions around <a href="/health-and-fitness/guides/health-connect/develop/get-started">Health Connect by Android</a>, a secure and centralized platform to manage and share app-collected health and fitness data. This update adds support for additional data types across <a href="/reference/android/health/connect/datatypes/StepsCadenceRecord#STEPS_CADENCE_RATE_AVG">fitness</a>, <a href="/reference/android/health/connect/datatypes/NutritionRecord#TRANS_FAT_TOTAL">nutrition</a>, skin temperature, training plans, and more.</p> <p>Skin temperature tracking allows users to store and share more accurate temperature data from a wearable or other tracking device.</p> <p>Training plans are structured workout plans to help a user achieve their fitness goals. Training plans support includes a variety of completion and performance goals:</p> <ul> <li>Completion goals around <a href="/reference/android/health/connect/datatypes/ExerciseCompletionGoal.ActiveCaloriesBurnedGoal">calories burned</a>, <a href="/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DistanceGoal">distance</a>, <a href="/reference/android/health/connect/datatypes/ExerciseCompletionGoal.DurationGoal">duration</a>, <a href="/reference/android/health/connect/datatypes/ExerciseCompletionGoal.RepetitionsGoal">repetition</a>, and <a href="/reference/android/health/connect/datatypes/ExerciseCompletionGoal.StepsGoal">steps</a>.</li> <li>Performance goals around as <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.AmrapGoal">many repetitions as possible (AMRAP)</a>, <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.CadenceGoal">cadence</a>, <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.HeartRateGoal">heart rate</a>, <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.PowerGoal">power</a>, <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.RateOfPerceivedExertionGoal">perceived rate of exertion</a>, and <a href="/reference/android/health/connect/datatypes/ExercisePerformanceGoal.SpeedGoal">speed</a>.</li> </ul> <p>Learn more about the latest updates to Health Connect in Android in the <a href="https://io.google/2024/explore/2e00e987-fa84-4cf9-9c4b-8b67b84456e3/" class="external">Building adaptable experiences with Android Health</a> talk from Google I/O.</p> <h3 id="app-screen-sharing" data-text="App screen sharing" tabindex="-1">App screen sharing</h3> <p>Android 15 supports app screen sharing so users can share or record just an app window rather than the entire device screen. This feature, first enabled in Android 14 QPR2, includes <a href="/about/versions/14/features/app-screen-sharing#media_projection_callbacks"><code translate="no" dir="ltr">MediaProjection</code> callbacks</a> that allow your app to customize the app screen sharing experience. Note that for apps targeting Android 14 (API level 34) or higher, <a href="/about/versions/14/behavior-changes-14#media-projection-consent">user consent is required</a> for each <a href="/reference/android/media/projection/MediaProjection"><code translate="no" dir="ltr">MediaProjection</code></a> capture session.</p> <h2 id="ux" data-text="User experience and system UI" tabindex="-1">User experience and system UI</h2> <p>Android 15 gives app developers and users more control and flexibility for configuring their device to fit their needs.</p> <p>To learn more about how to use the latest improvements in Android 15 to improve your app's user experience, see the <a href="https://io.google/2024/explore/3d552a80-acee-4243-8995-c491272800a1/" class="external">Improve the user experience of your Android app</a> talk from Google I/O.</p> <h3 id="gen-previews" data-text="Richer widget previews with Generated Previews API" tabindex="-1">Richer widget previews with Generated Previews API</h3> <p>Before Android 15, the only way to provide widget picker previews was to specify a static <a href="/develop/ui/views/appwidgets#preview">image or layout resource</a>. These previews often differ significantly from the look of the actual widget when it is placed on the home screen. Also, static resources can't be created with Jetpack Glance, so a Glance developer had to screenshot their widget or create an XML layout to have a widget preview.</p> <p>Android 15 adds support for generated previews. This means that app widget providers can generate <a href="/reference/android/widget/RemoteViews"><code translate="no" dir="ltr">RemoteViews</code></a> to use as the picker preview, instead of a static resource.</p> <figure> <img src="/static/about/versions/15/images/generated-previews.png" alt=""> <figcaption>Apps can provide Remote Views to the Widget Picker, so they can update the content in the picker to be more representative of what the user will see.</figcaption> </figure> <h4 id="push-api" data-text="Push API" tabindex="-1">Push API</h4> <p>Apps can provide generated previews through a push API. Apps can provide previews at any point in their lifecycle, and don't receive an explicit request from the host to provide previews. Previews are persisted in <code translate="no" dir="ltr">AppWidgetService</code>, and hosts can request them on-demand. The following example loads an XML widget layout resource and sets it as the preview:</p> <pre class="prettyprint lang-kotlin" translate="no" dir="ltr"><code translate="no" dir="ltr">AppWidgetManager.getInstance(appContext).setWidgetPreview( ComponentName( appContext, SociaLiteAppWidgetReceiver::class.java ), AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN, RemoteViews("com.example", R.layout.widget_preview) ) </code></pre> <p>The expected flow is:</p> <ol> <li>At any time, the widget provider calls <a href="/reference/android/appwidget/AppWidgetManager#setWidgetPreview(android.content.ComponentName,%20int,%20android.widget.RemoteViews)"><code translate="no" dir="ltr">setWidgetPreview</code></a>. The provided previews are persisted in <code translate="no" dir="ltr">AppWidgetService</code> with other provider info.</li> <li><code translate="no" dir="ltr">setWidgetPreview</code> notifies hosts of an updated preview through the <a href="/reference/android/appwidget/AppWidgetHost#onProvidersChanged()"><code translate="no" dir="ltr">AppWidgetHost.onProvidersChanged</code></a> callback. In response, the widget host reloads all of its provider information.</li> <li>When displaying a widget preview, the host checks <a href="/reference/android/appwidget/AppWidgetProviderInfo#generatedPreviewCategories"><code translate="no" dir="ltr">AppWidgetProviderInfo.generatedPreviewCategories</code></a>, and if the chosen category is available, calls <a href="/reference/android/appwidget/AppWidgetManager#getWidgetPreview(android.content.ComponentName,%20android.os.UserHandle,%20int)"><code translate="no" dir="ltr">AppWidgetManager.getWidgetPreview</code></a> to return the saved preview for this provider.</li> </ol> <h4 id="when-to-call" data-text="When to call setWidgetPreview" tabindex="-1">When to call <code translate="no" dir="ltr">setWidgetPreview</code></h4> <p>Because there is no callback to provide previews, apps can choose to send previews at any point when they are running. How often to update the preview depends on the widget's use case.</p> <p>The following list describes the two main categories of preview use cases:</p> <ul> <li>Providers that show real data in their widget previews, such as personalized or recent information. These providers can set the preview once the user has signed in or has done initial configuration in their app. After this, they can set up a periodic task to update the previews at their chosen cadence. Examples of this type of widget could be a photo, calendar, weather or news widget.</li> <li>Providers that show static information in previews or quick-action widgets that don't display any data. These providers can set previews once, when the app first launches. Examples of this type of widget include a drive quick actions widget or chrome shortcuts widget.</li> </ul> <p>Some providers might show static previews on the hub mode picker, but real information on the homescreen picker. These providers should follow the guidance for both of these use cases to set previews.</p> <h3 id="picture-in-picture" data-text="Picture-in-Picture" tabindex="-1">Picture-in-Picture</h3> <p>Android 15 introduces changes in Picture-in-Picture (PiP) ensuring an even smoother transition when entering into PiP mode. This will be beneficial for apps having UI elements overlaid on top of their main UI, which goes into PiP.</p> <p>Developers use the <a href="/reference/android/app/Activity#onPictureInPictureModeChanged(boolean,%20android.content.res.Configuration)"><code translate="no" dir="ltr">onPictureInPictureModeChanged</code></a> callback to define logic that toggles the visibility of the overlaid UI elements. This callback is triggered when the PiP enter or exit animation is completed. Beginning in Android 15, the <a href="/reference/android/app/PictureInPictureUiState"><code translate="no" dir="ltr">PictureInPictureUiState</code></a> class includes another state.</p> <p>With this UI state, apps targeting Android 15 (API level 35) will observe the <a href="/reference/android/app/Activity#onPictureInPictureUiStateChanged(android.app.PictureInPictureUiState)"><code translate="no" dir="ltr">Activity#onPictureInPictureUiStateChanged</code></a> callback being invoked with <a href="/reference/android/app/PictureInPictureUiState#isTransitioningToPip()"><code translate="no" dir="ltr">isTransitioningToPip()</code></a> as soon as the PiP animation starts. There are many UI elements that are not relevant for the app when it is in PiP mode, for example views or layout that include information such as suggestions, upcoming video, ratings, and titles. When the app goes to PiP mode, use the <code translate="no" dir="ltr">onPictureInPictureUiStateChanged</code> callback to hide these UI elements. When the app goes to full screen mode from the PiP window, use <code translate="no" dir="ltr">onPictureInPictureModeChanged</code> callback to unhide these elements, as shown in the following examples:</p> <pre class="prettyprint lang-Kotlin" translate="no" dir="ltr"><code translate="no" dir="ltr">override fun onPictureInPictureUiStateChanged(pipState: PictureInPictureUiState) { if (pipState.isTransitioningToPip()) { // Hide UI elements } } </code></pre><pre class="prettyprint lang-Kotlin" translate="no" dir="ltr"><code translate="no" dir="ltr">override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) { if (isInPictureInPictureMode) { // Unhide UI elements } } </code></pre> <p>This quick visibility toggle of irrelevant UI elements (for a PiP window) helps ensure a smoother and flicker-free PiP enter animation.</p> <h3 id="dnd-rules" data-text="Improved Do Not Disturb rules" tabindex="-1">Improved Do Not Disturb rules</h3> <p><a href="/reference/android/app/AutomaticZenRule"><code translate="no" dir="ltr">AutomaticZenRule</code></a> lets apps customize Attention Management (Do Not Disturb) rules and decide when to activate or deactivate them. Android 15 greatly enhances these rules with the goal of improving the user experience. The following enhancements are included:</p> <ul> <li>Adding types to <code translate="no" dir="ltr">AutomaticZenRule</code>, allowing the system to apply special treatment to some rules.</li> <li>Adding an icon to <code translate="no" dir="ltr">AutomaticZenRule</code>, helping to make the modes be more recognizable.</li> <li>Adding a <code translate="no" dir="ltr">triggerDescription</code> string to <code translate="no" dir="ltr">AutomaticZenRule</code> that describes the conditions on which the rule should become active for the user.</li> <li>Added <a href="/reference/android/service/notification/ZenDeviceEffects"><code translate="no" dir="ltr">ZenDeviceEffects</code></a> to <code translate="no" dir="ltr">AutomaticZenRule</code>, allowing rules to trigger things like grayscale display, night mode, or dimming the wallpaper.</li> </ul> <h3 id="vibrations" data-text="Set VibrationEffect for notification channels" tabindex="-1">Set VibrationEffect for notification channels</h3> <p>Android 15 supports setting rich vibrations for incoming notifications by channel using <a href="/reference/android/app/NotificationChannel#setVibrationEffect(android.os.VibrationEffect)"><code translate="no" dir="ltr">NotificationChannel.setVibrationEffect</code></a>, so your users can distinguish between different types of notifications without having to look at their device.</p> <h3 id="media-projection-chip-auto-stop" data-text="Media projection status bar chip and auto stop" tabindex="-1">Media projection status bar chip and auto stop</h3> <aside class="preview"><strong>Preview:</strong><span> This feature is included in <a href="/about/versions/15/release-notes">Android 15 QPR1</a>, which is in beta.</span></aside> <p>Media projection can expose private user information. A new, prominent status bar chip makes users aware of any ongoing screen projection. Users can tap the chip to stop screen casting, sharing, or recording. Also, for a more intuitive user experience, any in‑progress screen projection now automatically stops when the device screen is locked.</p> <figure style="margin: 1.5rem auto 1.25rem; width: 100%;"> <img class="invert" src="/static/media/images/grow/media_projection_status_bar_chip.png" alt=""/> <figcaption style="margin-top: 0.5rem;"> Status bar chip for screen sharing, casting, and recording. </figcaption> </figure> <h2 id="large-screens" data-text="Large screens and form factors" tabindex="-1">Large screens and form factors</h2> <p>Android 15 gives your apps the support to get the most out of Android's form factors, including large screens, flippables, and foldables.</p> <h3 id="large-screen-multitasking" data-text="Improved large screen multitasking" tabindex="-1">Improved large screen multitasking</h3> <figure> <video poster="/about/versions/15/images/save-app-pairs.png" autoplay loop muted controls> <source src="/static/about/versions/15/images/save-app-pairs.mp4" type="video/mp4"> <img src="/static/about/versions/15/images/save-app-pairs.png" alt="Users can save their favorite split-screen app combinations for quick access"> </video> <figcaption></figcaption> </figure> <p>Android 15 gives users better ways to multitask on large screen devices. For example, users can save their favorite split-screen app combinations for quick access and pin the taskbar on screen to quickly switch between apps. This means that making sure your app is adaptive is more important than ever.</p> <p>Google I/O has sessions on <a href="https://io.google/2024/explore/d16737ba-e336-4b68-8928-24692a88e644/" class="external">Building adaptive Android apps</a> and <a href="https://io.google/2024/explore/2dff9b4c-4069-4bde-ab9a-c5f53dc0fdb8/" class="external">Building UI with the Material 3 adaptive library</a> that can help, and our documentation has more to help you <a href="/design/ui/large-screens">Design for large screens</a>.</p> <h3 id="cover-screen" data-text="Cover screen support" tabindex="-1">Cover screen support</h3> <p>Your app can <a href="/reference/android/view/WindowManager#COMPAT_SMALL_COVER_SCREEN_OPT_IN">declare a property</a> that Android 15 uses to allow your <code translate="no" dir="ltr">Application</code> or <code translate="no" dir="ltr">Activity</code> to be presented on the small cover screens of supported flippable devices. These screens are too small to be considered as compatible targets for Android apps to run on, but your app can opt in to supporting them, making your app available in more places.</p> <h2 id="connectivity" data-text="Connectivity" tabindex="-1">Connectivity</h2> <p>Android 15 updates the platform to give your app access to the latest advances in communication and wireless technologies.</p> <h3 id="satellite" data-text="Satellite support" tabindex="-1">Satellite support</h3> <p>Android 15 continues to extend platform support for satellite connectivity and includes some UI elements to ensure a consistent user experience across the satellite connectivity landscape.</p> <p>Apps can use <a href="/reference/android/telephony/ServiceState?#isUsingNonTerrestrialNetwork()"><code translate="no" dir="ltr">ServiceState.isUsingNonTerrestrialNetwork()</code></a> to detect when a device is connected to a satellite, giving them more awareness of why full network services might be unavailable. Additionally, Android 15 provides support for SMS and MMS apps as well as preloaded RCS apps to use satellite connectivity for sending and receiving messages.</p> <figure> <img src="/static/about/versions/15/images/satellite-notification.png" alt=""> <figcaption>A notification appears when the device connects to a satellite.</figcaption> </figure> <h3 id="nfc" data-text="Smoother NFC experiences" tabindex="-1">Smoother NFC experiences</h3> <p>Android 15 is working to make the tap to pay experience more seamless and reliable while continuing to support Android's robust NFC app ecosystem. On supported devices, apps can request the <a href="/reference/android/nfc/NfcAdapter"><code translate="no" dir="ltr">NfcAdapter</code></a> to enter <a href="/reference/android/nfc/NfcAdapter#setObserveModeEnabled(boolean)">observe mode</a>, where the device listens but doesn't respond to NFC readers, sending the app's NFC service <a href="/reference/android/nfc/cardemulation/HostApduService#processPollingFrames(java.util.List%3Candroid.nfc.cardemulation.PollingFrame%3E)"><code translate="no" dir="ltr">PollingFrame</code></a> <a href="/reference/android/nfc/cardemulation/HostApduService#processPollingFrames(java.util.List%3Candroid.nfc.cardemulation.PollingFrame%3E)">objects</a> to process. The <code translate="no" dir="ltr">PollingFrame</code> objects can be used to auth ahead of the first communication to the NFC reader, allowing for a one tap transaction in many cases.</p> <p>In addition, apps can <a href="/reference/android/nfc/cardemulation/CardEmulation#registerPollingLoopPatternFilterForService(android.content.ComponentName,%20java.lang.String,%20boolean)">register a filter</a> on supported devices so they can be notified of polling loop activity, which allows for smooth operation with multiple NFC-aware applications.</p> <h3 id="wallet-role" data-text="Wallet role" tabindex="-1">Wallet role</h3> <p>Android 15 introduces a Wallet role that allows tighter integration with the user's preferred wallet app. This role replaces the NFC default contactless payment setting. Users can manage the Wallet role holder by navigating to <strong>Settings > Apps > Default Apps</strong>.</p> <p>The Wallet role is used when routing NFC taps for AIDs registered in the payment category. Taps always go to the Wallet role holder unless another app that is registered for the same AID is running in the foreground.</p> <p>This role is also used to determine where the Wallet Quick Access tile should go when activated. When the role is set to "None", the Quick Access tile isn't available and payment category NFC taps are only delivered to the foreground app.</p> <h2 id="security" data-text="Security" tabindex="-1">Security</h2> <p>Android 15 helps you enhance your app's security, protect your app's data, and gives users more transparency and control over their data. See the <a href="https://io.google/2024/explore/f757438a-844f-4c59-8dd4-9a5580a5e23d/" class="external">Safeguarding user security on Android</a> talk from Google I/O for more of what we're doing to improve user safeguards and protect your app against new threats.</p> <h3 id="credman-autofill" data-text="Integrate Credential Manager with autofill" tabindex="-1">Integrate Credential Manager with autofill</h3> <p>Starting with Android 15, developers can <a href="/identity/autofill/credential-manager-autofill">link specific views like username or password fields with Credential Manager requests</a>, making it easier to provide a tailored user experience during the sign-in process. When the user focuses on one of these views, a corresponding request is sent to Credential Manager. The resulting credentials are aggregated across providers and displayed in autofill fallback UIs, such as inline suggestions or drop-down suggestions. The Jetpack androidx.credentials library is the preferred endpoint for developers to use and will soon be available to further enhance this feature in Android 15 and higher.</p> <h3 id="credman-biometric" data-text="Integrate single tap sign-up and sign-in with biometric prompts" tabindex="-1">Integrate single tap sign-up and sign-in with biometric prompts</h3> <p>Credential Manager <a href="/identity/sign-in/single-tap-biometric">integrates biometric prompts into the credential creation and sign-in processes</a>, eliminating the need for providers to manage biometric prompts. As a result, credential providers only need to focus on the results of the create and get flows, augmented with the biometric flow result. This simplified process creates a more efficient and streamlined credential creation and retrieval process.</p> <h3 id="key-mgmt-e2ee" data-text="Key management for end-to-end encryption" tabindex="-1">Key management for end-to-end encryption</h3> <p>We are introducing the <a href="/reference/android/provider/E2eeContactKeysManager"><code translate="no" dir="ltr">E2eeContactKeysManager</code></a> in Android 15, which facilitates end-to-end encryption (E2EE) in your Android apps by providing an OS-level API for the storage of cryptographic public keys.</p> <p>The <code translate="no" dir="ltr">E2eeContactKeysManager</code> is designed to integrate with the platform contacts app to give users a centralized way to manage and verify their contacts' public keys.</p> <h3 id="content-uri" data-text="Permission checks on content URIs" tabindex="-1">Permission checks on content URIs</h3> <p>Android 15 introduces a set of APIs that perform permission checks on content URIs:</p> <ul> <li><a href="/reference/android/content/Context#checkContentUriPermissionFull(android.net.Uri,%20int,%20int,%20int)"><code translate="no" dir="ltr">Context.checkContentUriPermissionFull</code></a>: This performs a full permission check on content URIs.</li> <li><code translate="no" dir="ltr">Activity</code> manifest attribute <a href="/guide/topics/manifest/activity-element#requireContentUriPermissionFromCaller"><code translate="no" dir="ltr">requireContentUriPermissionFromCaller</code></a>: This enforces specified permissions on the provided content URIs at activity launch.</li> <li><a href="/reference/android/app/ComponentCaller"><code translate="no" dir="ltr">ComponentCaller</code> class</a> for <code translate="no" dir="ltr">Activity</code> callers: This represents the app that launched the activity.</li> </ul> <h2 id="accessibility" data-text="Accessibility" tabindex="-1">Accessibility</h2> <p>Android 15 adds features that improve accessibility for users.</p> <h3 id="braille" data-text="Better Braille" tabindex="-1">Better Braille</h3> <p>In Android 15, we've made it possible for <a href="/guide/topics/ui/accessibility/testing#talkback">TalkBack</a> to support Braille displays that are using the HID standard over both USB and secure Bluetooth.</p> <p>This standard, much like the one used by mice and keyboards, will help Android support a wider range of Braille displays over time.</p> <h2 id="i18n" data-text="Internationalization" tabindex="-1">Internationalization</h2> <p>Android 15 adds features and capabilities that complement the user experience when a device is used in different languages.</p> <h3 id="cjk-variable-font" data-text="CJK variable font" tabindex="-1">CJK variable font</h3> <p>Starting with Android 15, the font file for Chinese, Japanese, and Korean (CJK) languages, NotoSansCJK, is now a variable font. Variable fonts open up possibilities for creative typography in CJK languages. Designers can explore a broader range of styles and create visually striking layouts that were previously difficult or impossible to achieve.</p> <figure> <img src="/static/about/versions/15/images/cjk-variable-font.png" alt=""> <figcaption>How the variable font for Chinese, Japanese, and Korean (CJK) languages appears with different font widths.</figcaption> </figure> <h3 id="inter-character-justification" data-text="Inter-character justification" tabindex="-1">Inter-character justification</h3> <p>Starting with Android 15, text can be justified utilizing letter spacing by using <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_CHARACTER"><code translate="no" dir="ltr">JUSTIFICATION_MODE_INTER_CHARACTER</code></a>. Inter-word justification was first introduced in Android 8.0 (API level 26), and inter-character justification provides similar capabilities for languages that use the whitespace character for segmentation, such as Chinese, Japanese, and others.</p> <div class="android-caption android-caption-grid"> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/none-japanese.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for Japanese text using <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_NONE"><code translate="no" dir="ltr">JUSTIFICATION_MODE_NONE</code></a>.</div> </div> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/none-english.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for English text using <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_NONE"><code translate="no" dir="ltr">JUSTIFICATION_MODE_NONE</code></a>.</div> </div> </div> <p><br></p> <div class="android-caption android-caption-grid"> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/inter-word-japanese.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for Japanese text using <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_WORD"><code translate="no" dir="ltr">JUSTIFICATION_MODE_INTER_WORD</code></a>.</div> </div> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/inter-word-english.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for English text using <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_WORD"><code translate="no" dir="ltr">JUSTIFICATION_MODE_INTER_WORD</code></a>.</div> </div> </div> <p><br></p> <div class="android-caption android-caption-grid"> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/inter-character-japanese.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for Japanese text using the <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_CHARACTER"><code translate="no" dir="ltr">JUSTIFICATION_MODE_INTER_CHARACTER</code></a>.</div> </div> <div class=" android-caption-item "> <div class="android-caption-image-container" > <picture> <img src="/static/about/versions/15/images/inter-character-english.png" class="android-caption-image" alt="" > </picture> </div> <div class="android-caption-description">Layout for English text using the <a href="/reference/android/text/Layout#JUSTIFICATION_MODE_INTER_CHARACTER"><code translate="no" dir="ltr">JUSTIFICATION_MODE_INTER_CHARACTER</code></a>.</div> </div> </div> <h3 id="automatic-line-break" data-text="Automatic line break configuration" tabindex="-1">Automatic line break configuration</h3> <p>Android started supporting phrase-based line breaks for Japanese and Korean in Android 13 (API level 33). However, while phrase-based line breaks improve the readability of short lines of text, they don't work well for long lines of text. In Android 15, apps can apply phrase-based line breaks only for short lines of text, using the <a href="/reference/kotlin/android/graphics/text/LineBreakConfig#line_break_style_auto"><code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_AUTO</code></a> option. This option selects the best word style option for the text.</p> <p>For short lines of text, phrase-based line breaks are used, functioning the same as <a href="/reference/kotlin/android/graphics/text/LineBreakConfig#line_break_word_style_phrase"><code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_PHRASE</code></a>, as shown in the following image:</p> <figure> <img src="/static/about/versions/15/images/line-break-auto-short.png" alt=""> <figcaption>For short lines of text, <code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_AUTO</code> applies phrase-based line breaks to improve the readability of the text. This is the same as applying <code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_PHRASE</code>.</figcaption> </figure> <p>For longer lines of text, <code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_AUTO</code> uses a no line-break word style, functioning the same as <a href="/reference/kotlin/android/graphics/text/LineBreakConfig#line_break_word_style_none"><code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_NONE</code></a>, as shown in the following image:</p> <figure> <img src="/static/about/versions/15/images/line-break-auto-long.png" alt=""> <figcaption>For long lines of text, <code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_AUTO</code> applies no line-break word style to improve the readability of the text. This is the same as applying <code translate="no" dir="ltr">LINE_BREAK_WORD_STYLE_NONE</code>.</figcaption> </figure> <h3 id="hentaigana-font" data-text="Additional Japanese Hentaigana Font" tabindex="-1">Additional Japanese Hentaigana Font</h3> <p>In Android 15, a font file for old Japanese Hiragana (known as Hentaigana) is bundled by default. The unique shapes of Hentaigana characters can add a distinctive flair to artwork or design while also helping to preserve accurate transmission and understanding of ancient Japanese documents.</p> <figure> <img src="/static/about/versions/15/images/hentaigana-font.png" alt=""> <figcaption>Character and text style for the Japanese Hentaigana font.</figcaption> </figure> <hr> <p><em>VideoLAN cone Copyright (c) 1996-2010 VideoLAN. This logo or a modified version may be used or modified by anyone to refer to the VideoLAN project or any product developed by the VideoLAN team, but does not indicate endorsement by the project.</em></p> <p><em>Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.</em></p> <p><em>OpenGL is a registered trademark and the OpenGL ES logo is a trademark of Hewlett Packard Enterprise used by permission by Khronos.</em></p> </div> <devsite-recommendations display="in-page" hidden yield> </devsite-recommendations> <devsite-thumb-rating position="footer"> </devsite-thumb-rating> <devsite-recommendations id="recommendations-link" yield></devsite-recommendations> <div class="devsite-floating-action-buttons"> </div> </article> <devsite-content-footer class="nocontent"> <p>Content and code samples on this page are subject to the licenses described in the <a href="/license">Content License</a>. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.</p> <p>Last updated 2024-11-26 UTC.</p> </devsite-content-footer> <devsite-notification > </devsite-notification> <div class="devsite-content-data"> <template class="devsite-content-data-template"> [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]] </template> </div> </devsite-content> </main> <devsite-footer-promos class="devsite-footer"> <nav class="devsite-footer-promos nocontent" aria-label="Promotions"> <ul class="devsite-footer-promos-list"> <li class="devsite-footer-promo"> <a href="//x.com/AndroidDev" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer X Promo" > <picture> <source class="devsite-dark-theme" srcset="https://developer.android.com/_static/android/images/logo-x_dt.svg" media="(prefers-color-scheme: dark)" loading="lazy" alt="X"> <img class="devsite-footer-promo-icon" src="/_static/android/images/logo-x.svg" loading="lazy" alt="X"> </picture> <span class="devsite-footer-promo-label"> X </span> </a> <div class="devsite-footer-promo-description">Follow @AndroidDev on X</div> </li> <li class="devsite-footer-promo"> <a href="//www.youtube.com/user/androiddevelopers" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer YouTube Promo" > <picture> <source class="devsite-dark-theme" srcset="https://developer.android.com/_static/android/images/logo-youtube_dt.svg" media="(prefers-color-scheme: dark)" loading="lazy" alt="YouTube"> <img class="devsite-footer-promo-icon" src="//www.gstatic.com/images/icons/material/product/2x/youtube_48dp.png" loading="lazy" alt="YouTube"> </picture> <span class="devsite-footer-promo-label"> YouTube </span> </a> <div class="devsite-footer-promo-description">Check out Android Developers on YouTube</div> </li> <li class="devsite-footer-promo"> <a href="//www.linkedin.com/showcase/androiddev" class="devsite-footer-promo-title gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer LinkedIn Promo" > <picture> <source class="devsite-dark-theme" srcset="https://developer.android.com/_static/android/images/logo-linkedin_dt.svg" media="(prefers-color-scheme: dark)" loading="lazy" alt="LinkedIn"> <img class="devsite-footer-promo-icon" src="/_static/android/images/logo-linkedin.svg" loading="lazy" alt="LinkedIn"> </picture> <span class="devsite-footer-promo-label"> LinkedIn </span> </a> <div class="devsite-footer-promo-description">Connect with the Android Developers community on LinkedIn</div> </li> </ul> </nav> </devsite-footer-promos> <devsite-footer-linkboxes class="devsite-footer"> <nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links"> <ul class="devsite-footer-linkboxes-list"> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">More Android</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//www.android.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Android </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//www.android.com/enterprise/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Android for Enterprise </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//www.android.com/security-center/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Security </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//source.android.com" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Source </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/news" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > News </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//android-developers.googleblog.com/" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 6)" > Blog </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/podcasts" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 7)" > Podcasts </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Discover</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/games" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Gaming </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/ml" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Machine Learning </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/health-and-fitness" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Health & Fitness </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/media" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Camera & Media </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/privacy" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Privacy </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/training/connectivity/5g" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 6)" > 5G </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Android Devices</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/large-screens" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Large screens </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/wear" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Wear OS </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/chrome-os" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > ChromeOS devices </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/cars" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Android for cars </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/tv" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Android TV </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Releases</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/15" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Android 15 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/14" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Android 14 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/13" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Android 13 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/12" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Android 12 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/11" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Android 11 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/10" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 6)" > Android 10 </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/about/versions/pie" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 7)" > Pie </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Documentation and Downloads</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="/studio/intro" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Android Studio guide </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/guide" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Developers guides </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/reference" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > API reference </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/studio" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Download Studio </a> </li> <li class="devsite-footer-linkbox-item"> <a href="/ndk" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 5)" > Android NDK </a> </li> </ul> </li> <li class="devsite-footer-linkbox "> <h3 class="devsite-footer-linkbox-heading no-link">Support</h3> <ul class="devsite-footer-linkbox-list"> <li class="devsite-footer-linkbox-item"> <a href="//issuetracker.google.com/issues/new?component=190923&template=841312" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 1)" > Report platform bug </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//issuetracker.google.com/issues/new?component=192697" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 2)" > Report documentation bug </a> </li> <li class="devsite-footer-linkbox-item"> <a href="//support.google.com/googleplay/android-developer" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 3)" > Google Play support </a> </li> <li class="devsite-footer-linkbox-item"> <a href="https://g.co/userresearch/androiddeveloperfooter" class="devsite-footer-linkbox-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Link (index 4)" > Join research studies </a> </li> </ul> </li> </ul> </nav> </devsite-footer-linkboxes> <devsite-footer-utility class="devsite-footer"> <div class="devsite-footer-utility nocontent"> <nav class="devsite-footer-sites" aria-label="Other Google Developers websites"> <a href="https://developers.google.com/" class="devsite-footer-sites-logo-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Developers Link"> <picture> <source srcset="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup-google-for-developers-dark-theme.svg" media="(prefers-color-scheme: none)" class="devsite-dark-theme" loading="lazy" alt="Google Developers"> <img class="devsite-footer-sites-logo" src="https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup-google-for-developers.svg" loading="lazy" alt="Google Developers"> </picture> </a> <ul class="devsite-footer-sites-list"> <li class="devsite-footer-sites-item"> <a href="//developer.android.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Android Link" > Android </a> </li> <li class="devsite-footer-sites-item"> <a href="//developer.chrome.com/home" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Chrome Link" > Chrome </a> </li> <li class="devsite-footer-sites-item"> <a href="//firebase.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Firebase Link" > Firebase </a> </li> <li class="devsite-footer-sites-item"> <a href="//cloud.google.com" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer Google Cloud Platform Link" > Google Cloud Platform </a> </li> <li class="devsite-footer-sites-item"> <a href="//developers.google.com/products/" class="devsite-footer-sites-link gc-analytics-event" data-category="Site-Wide Custom Events" data-label="Footer All products Link" > All products </a> </li> </ul> </nav> <nav class="devsite-footer-utility-links" aria-label="Utility links"> <ul class="devsite-footer-utility-list"> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="//policies.google.com/privacy" data-category="Site-Wide Custom Events" data-label="Footer Privacy link" > Privacy </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="/license" data-category="Site-Wide Custom Events" data-label="Footer License link" > License </a> </li> <li class="devsite-footer-utility-item "> <a class="devsite-footer-utility-link gc-analytics-event" href="/distribute/marketing-tools/brand-guidelines" data-category="Site-Wide Custom Events" data-label="Footer Brand guidelines link" > Brand guidelines </a> </li> <li class="devsite-footer-utility-item glue-cookie-notification-bar-control"> <a class="devsite-footer-utility-link gc-analytics-event" href="#" data-category="Site-Wide Custom Events" data-label="Footer Manage cookies link" aria-hidden="true" > Manage cookies </a> </li> <li class="devsite-footer-utility-item devsite-footer-utility-button"> <span class="devsite-footer-utility-description">Get news and tips by email</span> <a class="devsite-footer-utility-link gc-analytics-event" href="/updates" data-category="Site-Wide Custom Events" data-label="Footer Subscribe link" > Subscribe </a> </li> </ul> <devsite-language-selector> <ul role="presentation"> <li role="presentation"> <a role="menuitem" lang="en" >English</a> </li> <li role="presentation"> <a role="menuitem" lang="de" >Deutsch</a> </li> <li role="presentation"> <a role="menuitem" lang="es_419" >Español – América Latina</a> </li> <li role="presentation"> <a role="menuitem" lang="fr" >Français</a> </li> <li role="presentation"> <a role="menuitem" lang="id" >Indonesia</a> </li> <li role="presentation"> <a role="menuitem" lang="it" >Italiano</a> </li> <li role="presentation"> <a role="menuitem" lang="pl" >Polski</a> </li> <li role="presentation"> <a role="menuitem" lang="pt_br" >Português – Brasil</a> </li> <li role="presentation"> <a role="menuitem" lang="vi" >Tiếng Việt</a> </li> <li role="presentation"> <a role="menuitem" lang="tr" >Türkçe</a> </li> <li role="presentation"> <a role="menuitem" lang="ru" >Русский</a> </li> <li role="presentation"> <a role="menuitem" lang="he" >עברית</a> </li> <li role="presentation"> <a role="menuitem" lang="ar" >العربيّة</a> </li> <li role="presentation"> <a role="menuitem" lang="fa" >فارسی</a> </li> <li role="presentation"> <a role="menuitem" lang="hi" >हिंदी</a> </li> <li role="presentation"> <a role="menuitem" lang="bn" >বাংলা</a> </li> <li role="presentation"> <a role="menuitem" lang="th" >ภาษาไทย</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_cn" >中文 – 简体</a> </li> <li role="presentation"> <a role="menuitem" lang="zh_tw" >中文 – 繁體</a> </li> <li role="presentation"> <a role="menuitem" lang="ja" >日本語</a> </li> <li role="presentation"> <a role="menuitem" lang="ko" >한국어</a> </li> </ul> </devsite-language-selector> </nav> </div> </devsite-footer-utility> <devsite-panel></devsite-panel> </section></section> <devsite-sitemask></devsite-sitemask> <devsite-snackbar></devsite-snackbar> <devsite-tooltip ></devsite-tooltip> <devsite-heading-link></devsite-heading-link> <devsite-analytics> <script type="application/json" analytics>[]</script> <script type="application/json" tag-management>{"at": "True", "ga4": [{"id": "G-QFRN08RN6E", "purpose": 0}], "ga4p": [{"id": "G-QFRN08RN6E", "purpose": 0}], "gtm": [{"id": "GTM-KMSWPCJ", "purpose": 0}], "parameters": {"internalUser": "False", "language": {"machineTranslated": "False", "requested": "en", "served": "en"}, "pageType": "article", "projectName": "Android Developers", "signedIn": "False", "tenant": "android", "recommendations": {"sourcePage": "", "sourceType": 0, "sourceRank": 0, "sourceIdenticalDescriptions": 0, "sourceTitleWords": 0, "sourceDescriptionWords": 0, "experiment": ""}, "experiment": {"ids": ""}}}</script> </devsite-analytics> <devsite-badger></devsite-badger> <android-fully-clickable target=" .android-case-study .devsite-landing-row-item, .android-grouped-resources .devsite-landing-row-item, .android-grouped-resources-primary .devsite-landing-row-item, .android-grouped-resources-secondary .devsite-landing-row-item, .android-guide-cards .devsite-landing-row-item, .android-illustrated-resources-index .devsite-landing-row-item, .android-illustrated-resources-primary .devsite-landing-row-item, .android-illustrated-resources-secondary .devsite-landing-row-item, .android-illustrated-resources-secondary-small .devsite-landing-row-item, .android-illustrated-resources-tertiary .devsite-landing-row-item, .android-illustrated-resources-tertiary-small .devsite-landing-row-item, .android-promo .devsite-landing-row-item, .android-quick-link, .android-samples .devsite-card-wrapper, .fully-clickable" watch=".android-samples, devsite-content"></android-fully-clickable> <script nonce="xlLmf7Ovk5Yq+gdONuCU1PYfC+0yAv"> (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i; t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0]; E.parentNode.insertBefore(t,E);})(window, document, 'script', 'https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/js/app_loader.js', '[3,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android","https://android-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/android/manifest.json","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/favicon.svg","https://www.gstatic.com/devrel-devsite/prod/v870e399c64f7c43c99a3043db4b3a74327bb93d0914e84a0c3dba90bbfd67625/android/images/lockup.svg","https://fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,112,113,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,147,148,149,151,152,156,157,158,159,161,163,164,168,169,170,179,180,182,183,186,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developer.android.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["Cloud__enable_cloud_shell_fte_user_flow","Profiles__enable_awarding_url","MiscFeatureFlags__developers_footer_image","Significatio__enable_by_tenant","CloudShell__cloud_code_overflow_menu","Profiles__enable_dashboard_curated_recommendations","Profiles__enable_profile_collections","Cloud__enable_cloud_dlp_service","Concierge__enable_pushui","TpcFeatures__enable_mirror_tenant_redirects","Analytics__enable_clearcut_logging","Experiments__reqs_query_experiments","Cloud__enable_cloud_facet_chat","Profiles__enable_complete_playlist_endpoint","Search__enable_page_map","MiscFeatureFlags__enable_explain_this_code","Profiles__require_profile_eligibility_for_signin","Profiles__enable_recognition_badges","MiscFeatureFlags__enable_dark_theme","Profiles__enable_page_saving","DevPro__enable_cloud_innovators_plus","DevPro__enable_developer_subscriptions","Search__enable_dynamic_content_confidential_banner","MiscFeatureFlags__enable_view_transitions","Profiles__enable_completecodelab_endpoint","EngEduTelemetry__enable_engedu_telemetry","Cloud__enable_legacy_calculator_redirect","MiscFeatureFlags__enable_firebase_utm","Cloud__enable_cloudx_experiment_ids","Cloud__enable_free_trial_server_call","Cloud__enable_cloud_shell","Cloud__enable_cloudx_ping","BookNav__enable_tenant_cache_key","CloudShell__cloud_shell_button","Cloud__enable_llm_concierge_chat","TpcFeatures__enable_required_headers","Profiles__enable_developer_profiles_callout","MiscFeatureFlags__enable_project_variables","MiscFeatureFlags__emergency_css","Profiles__enable_public_developer_profiles","Profiles__enable_release_notes_notifications","Search__enable_ai_search_summaries","Search__enable_suggestions_from_borg","MiscFeatureFlags__enable_variable_operator","MiscFeatureFlags__developers_footer_dark_image","Search__enable_ai_eligibility_checks"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://developerscontentserving-pa.googleapis.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://developerscontentsearch-pa.googleapis.com",2,4,null,"https://developerprofiles-pa.googleapis.com",[3,"android","Android Developers","developer.android.com",null,"android-dot-devsite-v2-prod.appspot.com",null,null,[null,1,null,null,null,null,null,null,null,null,null,[1],null,null,null,null,null,null,[1],[1,null,null,[1,20],"/recommendations"],null,null,null,[1,null,1],[1,1,null,1,1]],null,[18,null,null,null,null,null,"/images/lockup.svg","/images/touchicon-180.png",null,null,null,null,null,null,null,null,null,null,null,null,null,1,null,null,null,"/images/lockup-dark-theme.svg",[]],[],null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,[6,1,14,15,20,22,23,28,29,37,43],null,[[null,null,1],[1,1]],[[null,null,null,null,null,null,null,[["G-QFRN08RN6E"],null,null,[["G-QFRN08RN6E",1]]],null,null,null,null,1],null,[[1,1],[2,2]]],null,4,null,null,null,null,null,null,null,null,null,null,null,null,null,"android.devsite.google"],null,"pk_live_5170syrHvgGVmSx9sBrnWtA5luvk9BwnVcvIi7HizpwauFG96WedXsuXh790rtij9AmGllqPtMLfhe2RSwD6Pn38V00uBCydV4m"]') </script> <devsite-a11y-announce></devsite-a11y-announce> </body> </html>