Skip to main content
Essentials
Build AI experiences
Build AI-powered Android apps with Gemini APIs and more.
Get started
Get started
Start by creating your first app. Go deeper with our training courses or explore app development on your own.
Hello world
Training courses
Tutorials
Compose for teams
Kotlin for Android
Monetization with Play ↗️
Android Developer Verification
Extend by device
Build apps that give your users seamless experiences from phones to tablets, watches, headsets, and more.
Adaptive apps
Android XR
Wear OS
Android for Cars
Android TV
ChromeOS
Build by category
Learn to build for your use case by following Google's prescriptive and opinionated guidance.
Games
Camera & media
Social & messaging
Health & fitness
Productivity
Enterprise apps
Get the latest
Stay in touch with the latest releases throughout the year, join our preview programs, and give us your feedback.
Latest updates
Experimental updates
Android Studio preview
Jetpack & Compose libraries
Wear OS releases
Privacy Sandbox ↗️
Design & Plan
Excellent Experiences
Build the best experiences for your best users.
Learn more
UI Design
Design a beautiful user interface using Android best practices.
Design for Android
Mobile
Adaptive UI
Android XR
Widgets
Wear OS
Android TV
Architecture
Design robust, testable, and maintainable app logic and services.
Introduction
Libraries
Navigation
Modularization
Testing
Kotlin Multiplatform
Quality
Plan for app quality and align with Play store guidelines.
Overview
Core value
User experience
Accessibility
Technical quality
Excellent Experiences
Security
Safeguard users against threats and ensure a secure Android experience.
Overview
Privacy
Permissions
Identity
Fraud prevention
Develop
Gemini in Android Studio
Your AI development companion for Android development.
Learn more
Get Android Studio
Core areas
Get the samples and docs for the features you need.
Samples
User interfaces
Background work
Data and files
Connectivity
All core areas ⤵️
Tools and workflow
Use the IDE to write and build your app, or create your own pipeline.
Write and debug code
Build projects
Test your app
Performance
Command-line tools
Gradle plugin API
Device tech
Write code for form factors. Connect devices and share data.
Adaptive UI
Wear OS
Android XR
Android Health
Android for Cars
Android TV
All devices ⤵️
Libraries
Browse API reference documentation with all the details.
Android platform
Jetpack libraries
Compose libraries
Google Play services ↗️
Google Play SDK index ↗️
Google Play
Play Console
Publish your app or game and grow your business on Google Play.
Go to Play Console
Learn more ↗️
Fundamentals
Learn how to engage users, monitize, and secure your app.
Play Monetization
Play Integrity
Play Policies
Play Programs ↗️
Games Dev Center
Develop and deliver games. Get tools, downloads, and samples.
Overview
Play Asset Delivery
Play Games Services
Play Games on PC
All Play guides ⤵️
Libraries
Browse API reference documentation with all the details.
Play Feature Delivery
Play In-app Updates
Play In-app Reviews
Play Install Referrer
Google Play services ↗️
Google Play SDK index ↗️
All Play libraries ⤵️
Tools & resources
Tools for publishing, promoting, and managing your app.
Android App Bundles
Brand & marketing
Play Console APIs ↗️
Community
/
English
Deutsch
Español – América Latina
Français
Indonesia
Polski
Português – Brasil
Tiếng Việt
中文 – 简体
日本語
한국어
Android Studio
Sign in
API reference
Essentials
More
Design & Plan
More
Develop
More
Google Play
More
Community
Android Studio
Android API Reference
Overview
AndroidX
Class Index
Package Index
android.support.v4.media
Overview
Classes
MediaBrowserCompat
MediaBrowserCompat.ConnectionCallback
MediaBrowserCompat.CustomActionCallback
MediaBrowserCompat.ItemCallback
MediaBrowserCompat.MediaItem
MediaBrowserCompat.SearchCallback
MediaBrowserCompat.SubscriptionCallback
MediaDescriptionCompat
MediaDescriptionCompat.Builder
MediaMetadataCompat
MediaMetadataCompat.Builder
RatingCompat
android.support.v4.media.session
Overview
Interfaces
MediaSessionCompat.OnActiveChangeListener
Classes
MediaControllerCompat
MediaControllerCompat.Callback
MediaControllerCompat.PlaybackInfo
MediaControllerCompat.TransportControls
MediaSessionCompat
MediaSessionCompat.Callback
MediaSessionCompat.QueueItem
MediaSessionCompat.Token
ParcelableVolumeInfo
PlaybackStateCompat
PlaybackStateCompat.Builder
PlaybackStateCompat.CustomAction
PlaybackStateCompat.CustomAction.Builder
androidx.activity
Overview
Interfaces
FullyDrawnReporterOwner
OnBackPressedDispatcherOwner
Classes
ActivityViewModelLazyKt
BackEventCompat
ComponentActivity
ComponentDialog
EdgeToEdge
FullyDrawnReporter
FullyDrawnReporterKt
OnBackPressedCallback
OnBackPressedDispatcher
OnBackPressedDispatcherKt
PipHintTrackerKt
SystemBarStyle
ViewTreeFullyDrawnReporterOwner
ViewTreeOnBackPressedDispatcherOwner
androidx.activity.contextaware
Overview
Interfaces
ContextAware
OnContextAvailableListener
Classes
ContextAwareHelper
ContextAwareKt
androidx.activity.result
Overview
Interfaces
ActivityResultCallback
ActivityResultCaller
ActivityResultRegistryOwner
Classes
ActivityResult
ActivityResultCallerKt
ActivityResultKt
ActivityResultLauncher
ActivityResultLauncherKt
ActivityResultRegistry
IntentSenderRequest
IntentSenderRequest.Builder
PickVisualMediaRequest
PickVisualMediaRequest.Builder
PickVisualMediaRequestKt
androidx.activity.result.contract
Overview
Interfaces
ActivityResultContracts.PickVisualMedia.VisualMediaType
Classes
ActivityResultContract
ActivityResultContract.SynchronousResult
ActivityResultContracts
ActivityResultContracts.CaptureVideo
ActivityResultContracts.CreateDocument
ActivityResultContracts.GetContent
ActivityResultContracts.GetMultipleContents
ActivityResultContracts.OpenDocument
ActivityResultContracts.OpenDocumentTree
ActivityResultContracts.OpenMultipleDocuments
ActivityResultContracts.PickContact
ActivityResultContracts.PickMultipleVisualMedia
ActivityResultContracts.PickVisualMedia
ActivityResultContracts.PickVisualMedia.DefaultTab
ActivityResultContracts.PickVisualMedia.DefaultTab.AlbumsTab
ActivityResultContracts.PickVisualMedia.DefaultTab.PhotosTab
ActivityResultContracts.PickVisualMedia.ImageAndVideo
ActivityResultContracts.PickVisualMedia.ImageOnly
ActivityResultContracts.PickVisualMedia.MediaCapabilities
ActivityResultContracts.PickVisualMedia.MediaCapabilities.Builder
ActivityResultContracts.PickVisualMedia.SingleMimeType
ActivityResultContracts.PickVisualMedia.VideoOnly
ActivityResultContracts.RequestMultiplePermissions
ActivityResultContracts.RequestPermission
ActivityResultContracts.StartActivityForResult
ActivityResultContracts.StartIntentSenderForResult
ActivityResultContracts.TakePicture
ActivityResultContracts.TakePicturePreview
ActivityResultContracts.TakeVideo
androidx.annotation
Overview
Enums
InspectableProperty.ValueType
RequiresOptIn.Level
RestrictTo.Scope
Annotations
AnimRes
AnimatorRes
AnyRes
AnyThread
ArrayRes
AttrRes
BinderThread
BoolRes
CallSuper
CheckResult
ChecksSdkIntAtLeast
ColorInt
ColorLong
ColorRes
ContentView
DeprecatedSinceApi
DimenRes
Dimension
Discouraged
DisplayContext
DoNotInline
DrawableRes
EmptySuper
FloatRange
FontRes
FractionRes
GravityInt
GuardedBy
HalfFloat
IdRes
InspectableProperty
InspectableProperty.EnumEntry
InspectableProperty.FlagEntry
IntDef
IntRange
IntegerRes
InterpolatorRes
Keep
LayoutRes
LongDef
MainThread
MenuRes
NavigationRes
NonNull
NonUiContext
Nullable
OpenForTesting
OptIn
PluralsRes
Px
RawRes
ReplaceWith
RequiresApi
RequiresExtension
RequiresFeature
RequiresOptIn
RequiresPermission
RequiresPermission.Read
RequiresPermission.Write
RestrictTo
ReturnThis
Size
StringDef
StringRes
StyleRes
StyleableRes
TransitionRes
UiContext
UiThread
VisibleForTesting
WorkerThread
XmlRes
androidx.annotation.experimental
Overview
Enums
Experimental.Level
Annotations
Experimental
UseExperimental
androidx.appcompat.app
Overview
Interfaces
ActionBar.OnMenuVisibilityListener
ActionBar.OnNavigationListener
ActionBar.TabListener
ActionBarDrawerToggle.Delegate
ActionBarDrawerToggle.DelegateProvider
AppCompatCallback
Classes
ActionBar
ActionBar.LayoutParams
ActionBar.Tab
ActionBarDrawerToggle
AlertDialog
AlertDialog.Builder
AppCompatActivity
AppCompatDelegate
AppCompatDialog
AppCompatDialogFragment
AppCompatViewInflater
AppLocalesMetadataHolderService
androidx.appcompat.content.res
Overview
Classes
AppCompatResources
androidx.appcompat.graphics.drawable
Overview
Classes
AnimatedStateListDrawableCompat
DrawableContainerCompat
DrawableWrapperCompat
DrawerArrowDrawable
StateListDrawableCompat
androidx.appcompat.view
Overview
Interfaces
ActionMode.Callback
CollapsibleActionView
Classes
ActionMode
ContextThemeWrapper
androidx.appcompat.widget
Overview
Interfaces
ActionMenuView.OnMenuItemClickListener
EmojiCompatConfigurationView
PopupMenu.OnDismissListener
PopupMenu.OnMenuItemClickListener
SearchView.OnCloseListener
SearchView.OnQueryTextListener
SearchView.OnSuggestionListener
ShareActionProvider.OnShareTargetSelectedListener
ThemedSpinnerAdapter
Toolbar.OnMenuItemClickListener
Classes
ActionMenuView
ActionMenuView.LayoutParams
AppCompatAutoCompleteTextView
AppCompatButton
AppCompatCheckBox
AppCompatCheckedTextView
AppCompatEditText
AppCompatImageButton
AppCompatImageView
AppCompatMultiAutoCompleteTextView
AppCompatRadioButton
AppCompatRatingBar
AppCompatSeekBar
AppCompatSpinner
AppCompatTextView
AppCompatToggleButton
LinearLayoutCompat
LinearLayoutCompat.LayoutParams
ListPopupWindow
PopupMenu
SearchView
ShareActionProvider
SwitchCompat
ThemedSpinnerAdapter.Helper
Toolbar
Toolbar.LayoutParams
Toolbar.SavedState
TooltipCompat
androidx.appfunctions
Overview
Interfaces
AppFunctionContext
ExecuteAppFunctionResponse
Classes
AppFunctionData
AppFunctionData.Builder
AppFunctionManagerCompat
AppFunctionSearchSpec
AppFunctionUriGrant
ExecuteAppFunctionRequest
ExecuteAppFunctionResponse.Error
ExecuteAppFunctionResponse.Success
Exceptions
AppFunctionAppException
AppFunctionAppUnknownException
AppFunctionCancelledException
AppFunctionDeniedException
AppFunctionDisabledException
AppFunctionElementAlreadyExistsException
AppFunctionElementNotFoundException
AppFunctionException
AppFunctionFunctionNotFoundException
AppFunctionInvalidArgumentException
AppFunctionLimitExceededException
AppFunctionNotSupportedException
AppFunctionPermissionRequiredException
AppFunctionRequestException
AppFunctionSystemException
AppFunctionSystemUnknownException
AppFunctionUnknownException
Annotations
AppFunctionIntValueConstraint
AppFunctionSchemaDefinition
AppFunctionSerializable
AppFunctionStringValueConstraint
androidx.appfunctions.metadata
Overview
Classes
AppFunctionAllOfTypeMetadata
AppFunctionAppMetadata
AppFunctionArrayTypeMetadata
AppFunctionBooleanTypeMetadata
AppFunctionBytesTypeMetadata
AppFunctionComponentsMetadata
AppFunctionDataTypeMetadata
AppFunctionDoubleTypeMetadata
AppFunctionFloatTypeMetadata
AppFunctionIntTypeMetadata
AppFunctionLongTypeMetadata
AppFunctionMetadata
AppFunctionObjectTypeMetadata
AppFunctionPackageMetadata
AppFunctionParameterMetadata
AppFunctionPendingIntentTypeMetadata
AppFunctionReferenceTypeMetadata
AppFunctionResponseMetadata
AppFunctionSchemaMetadata
AppFunctionStringTypeMetadata
AppFunctionUnitTypeMetadata
androidx.appfunctions.service
Overview
Interfaces
AppFunctionConfiguration.Provider
Classes
AppFunctionConfiguration
AppFunctionConfiguration.Builder
Annotations
AppFunction
androidx.appfunctions.testing
Overview
Classes
AppFunctionTestRule
androidx.appsearch.annotation
Overview
Classes
Document.LongProperty.DefaultSerializer
Document.StringProperty.DefaultSerializer
Annotations
Document
Document.BlobHandleProperty
Document.BooleanProperty
Document.BuilderProducer
Document.BytesProperty
Document.CreationTimestampMillis
Document.DocumentProperty
Document.DoubleProperty
Document.EmbeddingProperty
Document.Id
Document.LongProperty
Document.Namespace
Document.Score
Document.StringProperty
Document.TtlMillis
androidx.appsearch.app
Overview
Interfaces
AppSearchSession
DocumentClassFactory
EnterpriseGlobalSearchSession
Features
GlobalSearchSession
LongSerializer
SearchResults
StringSerializer
Classes
AppSearchBatchResult
AppSearchBatchResult.Builder
AppSearchBlobHandle
AppSearchDocumentClassMap
AppSearchResult
AppSearchSchema
AppSearchSchema.BlobHandlePropertyConfig
AppSearchSchema.BlobHandlePropertyConfig.Builder
AppSearchSchema.BooleanPropertyConfig
AppSearchSchema.BooleanPropertyConfig.Builder
AppSearchSchema.Builder
AppSearchSchema.BytesPropertyConfig
AppSearchSchema.BytesPropertyConfig.Builder
AppSearchSchema.DocumentPropertyConfig
AppSearchSchema.DocumentPropertyConfig.Builder
AppSearchSchema.DoublePropertyConfig
AppSearchSchema.DoublePropertyConfig.Builder
AppSearchSchema.EmbeddingPropertyConfig
AppSearchSchema.EmbeddingPropertyConfig.Builder
AppSearchSchema.LongPropertyConfig
AppSearchSchema.LongPropertyConfig.Builder
AppSearchSchema.PropertyConfig
AppSearchSchema.StringPropertyConfig
AppSearchSchema.StringPropertyConfig.Builder
CommitBlobResponse
DocumentClassMappingContext
EmbeddingVector
GenericDocument
GenericDocument.Builder
GetByDocumentIdRequest
GetByDocumentIdRequest.Builder
GetSchemaResponse
GetSchemaResponse.Builder
JoinSpec
JoinSpec.Builder
Migrator
OpenBlobForReadResponse
OpenBlobForWriteResponse
PackageIdentifier
PropertyPath
PropertyPath.PathSegment
PutDocumentsRequest
PutDocumentsRequest.Builder
RemoveBlobResponse
RemoveByDocumentIdRequest
RemoveByDocumentIdRequest.Builder
ReportSystemUsageRequest
ReportSystemUsageRequest.Builder
ReportUsageRequest
ReportUsageRequest.Builder
SchemaVisibilityConfig
SchemaVisibilityConfig.Builder
SearchResult
SearchResult.Builder
SearchResult.EmbeddingMatchInfo
SearchResult.MatchInfo
SearchResult.MatchInfo.Builder
SearchResult.MatchRange
SearchResult.TextMatchInfo
SearchSpec
SearchSpec.Builder
SearchSuggestionResult
SearchSuggestionResult.Builder
SearchSuggestionSpec
SearchSuggestionSpec.Builder
SetBlobVisibilityRequest
SetBlobVisibilityRequest.Builder
SetSchemaRequest
SetSchemaRequest.Builder
SetSchemaResponse
SetSchemaResponse.Builder
SetSchemaResponse.MigrationFailure
ShortcutAdapter
StorageInfo
StorageInfo.Builder
Annotations
ExperimentalAppSearchApi
androidx.appsearch.ast
Overview
Interfaces
FunctionNode
Node
Classes
NegationNode
TextNode
androidx.appsearch.ast.operators
Overview
Classes
AndNode
ComparatorNode
OrNode
PropertyRestrictNode
androidx.appsearch.ast.query
Overview
Classes
GetSearchStringParameterNode
HasPropertyNode
PropertyDefinedNode
SearchNode
SemanticSearchNode
androidx.appsearch.builtintypes
Overview
Classes
Alarm
Alarm.Builder
AlarmInstance
AlarmInstance.Builder
BuiltInCorpusFilters
ContactPoint
ContactPoint.Builder
GlobalSearchApplicationInfo
GlobalSearchApplicationInfo.Builder
ImageObject
ImageObject.Builder
MobileApplication
MobileApplication.Builder
Person
Person.AdditionalName
Person.Builder
PotentialAction
PotentialAction.Builder
Stopwatch
Stopwatch.Builder
StopwatchLap
StopwatchLap.Builder
Thing
Thing.Builder
Timer
Timer.Builder
WebPage
WebPage.Builder
androidx.appsearch.builtintypes.properties
Overview
Classes
Keyword
androidx.appsearch.exceptions
Overview
Exceptions
AppSearchException
androidx.appsearch.localstorage
Overview
Classes
LocalStorage
LocalStorage.GlobalSearchContext
LocalStorage.GlobalSearchContext.Builder
LocalStorage.SearchContext
LocalStorage.SearchContext.Builder
androidx.appsearch.observer
Overview
Interfaces
ObserverCallback
Classes
DocumentChangeInfo
ObserverSpec
ObserverSpec.Builder
SchemaChangeInfo
androidx.appsearch.platformstorage
Overview
Classes
PlatformStorage
PlatformStorage.GlobalSearchContext
PlatformStorage.GlobalSearchContext.Builder
PlatformStorage.SearchContext
PlatformStorage.SearchContext.Builder
androidx.appsearch.playservicesstorage
Overview
Classes
PlayServicesStorage
PlayServicesStorage.GlobalSearchContext
PlayServicesStorage.GlobalSearchContext.Builder
PlayServicesStorage.SearchContext
PlayServicesStorage.SearchContext.Builder
androidx.appsearch.usagereporting
Overview
Classes
ClickAction
ClickAction.Builder
DismissAction
DismissAction.Builder
ImpressionAction
ImpressionAction.Builder
SearchAction
SearchAction.Builder
TakenAction
androidx.appsearch.util
Overview
Classes
DocumentIdUtil
androidx.arch.core.executor.testing
Overview
Classes
CountingTaskExecutorRule
InstantTaskExecutorRule
androidx.arch.core.util
Overview
Interfaces
Function
androidx.asynclayoutinflater.appcompat
Overview
Classes
AsyncAppCompatFactory
androidx.asynclayoutinflater.view
Overview
Interfaces
AsyncLayoutFactory
AsyncLayoutInflater.OnInflateFinishedListener
Classes
AsyncLayoutInflater
androidx.autofill
Overview
Classes
HintConstants
androidx.autofill.inline
Overview
Interfaces
UiVersions.Content
UiVersions.Style
Classes
Renderer
SuggestionHintConstants
UiVersions
UiVersions.StylesBuilder
androidx.autofill.inline.common
Overview
Classes
ImageViewStyle
ImageViewStyle.Builder
TextViewStyle
TextViewStyle.Builder
ViewStyle
ViewStyle.Builder
androidx.autofill.inline.v1
Overview
Classes
InlineSuggestionUi
InlineSuggestionUi.Content
InlineSuggestionUi.Content.Builder
InlineSuggestionUi.Style
InlineSuggestionUi.Style.Builder
androidx.benchmark
Overview
Classes
BenchmarkState
BlackHole
ExperimentalConfig
MetricCapture
MicrobenchmarkConfig
MicrobenchmarkScope
ProfilerConfig
ProfilerConfig.MethodTracing
ProfilerConfig.StackSampling
StartupInsightsConfig
TimeCapture
Annotations
ExperimentalBenchmarkConfigApi
ExperimentalBenchmarkStateApi
ExperimentalBlackHoleApi
androidx.benchmark.junit4
Overview
Classes
AndroidBenchmarkRunner
BenchmarkRule
BenchmarkRule.Scope
BenchmarkRuleKt
PerfettoTraceRule
androidx.benchmark.macro
Overview
Classes
ArtMetric
BaselineProfileConfig
BaselineProfileConfig.Builder
BaselineProfileResult
CompilationMode
CompilationMode.Full
CompilationMode.Ignore
CompilationMode.None
CompilationMode.Partial
FrameTimingGfxInfoMetric
FrameTimingMetric
MacrobenchmarkScope
MemoryCountersMetric
MemoryUsageMetric
Metric
Metric.CaptureInfo
Metric.Measurement
MetricResultExtensionsKt
PowerMetric
PowerMetric.Type
PowerMetric.Type.Battery
PowerMetric.Type.Energy
PowerMetric.Type.Power
StartupTimingMetric
TraceMetric
TraceProcessorExtensionsKt
TraceSectionMetric
TraceSectionMetric.Mode
TraceSectionMetric.Mode.Average
TraceSectionMetric.Mode.Count
TraceSectionMetric.Mode.First
TraceSectionMetric.Mode.Max
TraceSectionMetric.Mode.Min
TraceSectionMetric.Mode.Sum
Enums
BaselineProfileMode
MemoryUsageMetric.Mode
MemoryUsageMetric.SubMetric
PowerCategory
PowerCategoryDisplayLevel
StartupMode
Annotations
ExperimentalMacrobenchmarkApi
ExperimentalMetricApi
androidx.benchmark.macro.junit4
Overview
Classes
BaselineProfileRule
MacrobenchmarkRule
androidx.benchmark.perfetto
Overview
Classes
PerfettoConfig
PerfettoConfig.Binary
PerfettoConfig.Text
Annotations
ExperimentalPerfettoCaptureApi
androidx.benchmark.traceprocessor
Overview
Interfaces
Insight.Provider
ServerLifecycleManager
TraceProcessor.EventCallback
Classes
Insight
Insight.Category
PerfettoTrace
PerfettoTrace.Companion
PerfettoTrace.Link
PerfettoTraceKt
Row
RowKt
StartupInsights
TraceProcessor
TraceProcessor.Companion
TraceProcessor.EventCallback.Noop
TraceProcessor.Handle
TraceProcessor.Session
TraceProcessor.Session.Handle
TraceProcessor.Tracer
TraceProcessorKt
Annotations
ExperimentalInsightApi
ExperimentalTraceProcessorApi
androidx.benchmark.vmtrace
androidx.biometric
Overview
Interfaces