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
Android Platform
Packages
Class Index
Package Index
android
Overview
Classes
Manifest
Manifest.permission
Manifest.permission_group
R
R.anim
R.animator
R.array
R.attr
R.bool
R.color
R.dimen
R.drawable
R.fraction
R.id
R.integer
R.interpolator
R.layout
R.menu
R.mipmap
R.plurals
R.raw
R.string
R.style
R.styleable
R.transition
R.xml
android.accessibilityservice
Overview
Classes
AccessibilityButtonController
AccessibilityButtonController.AccessibilityButtonCallback
AccessibilityGestureEvent
AccessibilityService
AccessibilityService.GestureResultCallback
AccessibilityService.MagnificationController
AccessibilityService.ScreenshotResult
AccessibilityService.SoftKeyboardController
AccessibilityServiceInfo
FingerprintGestureController
FingerprintGestureController.FingerprintGestureCallback
GestureDescription
GestureDescription.Builder
GestureDescription.StrokeDescription
InputMethod
InputMethod.AccessibilityInputConnection
MagnificationConfig
MagnificationConfig.Builder
TouchInteractionController
Interfaces
AccessibilityService.MagnificationController.OnMagnificationChangedListener
AccessibilityService.SoftKeyboardController.OnShowModeChangedListener
AccessibilityService.TakeScreenshotCallback
BrailleDisplayController
BrailleDisplayController.BrailleDisplayCallback
TouchInteractionController.Callback
android.accounts
Overview
Classes
AbstractAccountAuthenticator
Account
AccountAuthenticatorActivity
AccountAuthenticatorResponse
AccountManager
AuthenticatorDescription
Interfaces
AccountManagerCallback
AccountManagerFuture
OnAccountsUpdateListener
Exceptions
AccountsException
AuthenticatorException
NetworkErrorException
OperationCanceledException
android.adservices
Overview
Classes
AdServicesState
android.adservices.adid
Overview
Classes
AdId
AdIdManager
android.adservices.adselection
Overview
Classes
AddAdSelectionFromOutcomesOverrideRequest
AddAdSelectionOverrideRequest
AdSelectionConfig
AdSelectionConfig.Builder
AdSelectionFromOutcomesConfig
AdSelectionFromOutcomesConfig.Builder
AdSelectionManager
AdSelectionOutcome
AdSelectionOutcome.Builder
AdWithBid
DecisionLogic
GetAdSelectionDataOutcome
GetAdSelectionDataRequest
GetAdSelectionDataRequest.Builder
PerBuyerConfiguration
PerBuyerConfiguration.Builder
PerBuyerDecisionLogic
PersistAdSelectionResultRequest
PersistAdSelectionResultRequest.Builder
RemoveAdSelectionFromOutcomesOverrideRequest
RemoveAdSelectionOverrideRequest
ReportEventRequest
ReportEventRequest.Builder
ReportImpressionRequest
SellerConfiguration
SellerConfiguration.Builder
SetAppInstallAdvertisersRequest
SetAppInstallAdvertisersRequest.Builder
SignedContextualAds
SignedContextualAds.Builder
TestAdSelectionManager
UpdateAdCounterHistogramRequest
UpdateAdCounterHistogramRequest.Builder
android.adservices.appsetid
Overview
Classes
AppSetId
AppSetIdManager
android.adservices.common
Overview
Classes
AdData
AdData.Builder
AdFilters
AdFilters.Builder
AdSelectionSignals
AdServicesPermissions
AdTechIdentifier
AppInstallFilters
AppInstallFilters.Builder
ComponentAdData
FrequencyCapFilters
FrequencyCapFilters.Builder
KeyedFrequencyCap
KeyedFrequencyCap.Builder
Interfaces
AdServicesOutcomeReceiver
android.adservices.customaudience
Overview
Classes
AddCustomAudienceOverrideRequest
AddCustomAudienceOverrideRequest.Builder
CustomAudience
CustomAudience.Builder
CustomAudienceManager
FetchAndJoinCustomAudienceRequest
FetchAndJoinCustomAudienceRequest.Builder
JoinCustomAudienceRequest
JoinCustomAudienceRequest.Builder
LeaveCustomAudienceRequest
LeaveCustomAudienceRequest.Builder
PartialCustomAudience
PartialCustomAudience.Builder
RemoveCustomAudienceOverrideRequest
RemoveCustomAudienceOverrideRequest.Builder
ScheduleCustomAudienceUpdateRequest
ScheduleCustomAudienceUpdateRequest.Builder
TestCustomAudienceManager
TrustedBiddingData
TrustedBiddingData.Builder
android.adservices.exceptions
Overview
Exceptions
AdServicesException
android.adservices.measurement
Overview
Classes
DeletionRequest
DeletionRequest.Builder
MeasurementManager
SourceRegistrationRequest
SourceRegistrationRequest.Builder
WebSourceParams
WebSourceParams.Builder
WebSourceRegistrationRequest
WebSourceRegistrationRequest.Builder
WebTriggerParams
WebTriggerParams.Builder
WebTriggerRegistrationRequest
WebTriggerRegistrationRequest.Builder
android.adservices.ondevicepersonalization
Overview
Classes
AppInfo
DownloadCompletedInput
DownloadCompletedOutput
DownloadCompletedOutput.Builder
EventInput
EventLogRecord
EventLogRecord.Builder
EventOutput
EventOutput.Builder
EventUrlProvider
ExecuteInIsolatedServiceRequest
ExecuteInIsolatedServiceRequest.Builder
ExecuteInIsolatedServiceRequest.OutputSpec
ExecuteInIsolatedServiceResponse
ExecuteInput
ExecuteOutput
ExecuteOutput.Builder
FederatedComputeInput
FederatedComputeInput.Builder
FederatedComputeScheduler
FederatedComputeScheduler.Params
FederatedComputeScheduleRequest
FederatedComputeScheduleResponse
InferenceInput
InferenceInput.Builder
InferenceInput.Params
InferenceInput.Params.Builder
InferenceOutput
InferenceOutput.Builder
IsolatedService
LogReader
ModelManager
OnDevicePersonalizationManager
OnDevicePersonalizationManager.ExecuteResult
RenderingConfig
RenderingConfig.Builder
RenderInput
RenderOutput
RenderOutput.Builder
RequestLogRecord
RequestLogRecord.Builder
RequestToken
SurfacePackageToken
TrainingExampleRecord
TrainingExampleRecord.Builder
TrainingExamplesInput
TrainingExamplesOutput
TrainingExamplesOutput.Builder
TrainingInterval
TrainingInterval.Builder
UserData
WebTriggerInput
WebTriggerOutput
WebTriggerOutput.Builder
Interfaces
IsolatedWorker
KeyValueStore
MutableKeyValueStore
Exceptions
IsolatedServiceException
OnDevicePersonalizationException
android.adservices.signals
Overview
Classes
ProtectedSignalsManager
UpdateSignalsRequest
UpdateSignalsRequest.Builder
android.adservices.topics
Overview
Classes
EncryptedTopic
GetTopicsRequest
GetTopicsRequest.Builder
GetTopicsResponse
GetTopicsResponse.Builder
Topic
TopicsManager
android.animation
Overview
Classes
Animator
AnimatorInflater
AnimatorListenerAdapter
AnimatorSet
AnimatorSet.Builder
ArgbEvaluator
BidirectionalTypeConverter
FloatArrayEvaluator
FloatEvaluator
IntArrayEvaluator
IntEvaluator
Keyframe
LayoutTransition
ObjectAnimator
PointFEvaluator
PropertyValuesHolder
RectEvaluator
StateListAnimator
TimeAnimator
TypeConverter
ValueAnimator
Interfaces
Animator.AnimatorListener
Animator.AnimatorPauseListener
LayoutTransition.TransitionListener
TimeAnimator.TimeListener
TimeInterpolator
TypeEvaluator
ValueAnimator.AnimatorUpdateListener
ValueAnimator.DurationScaleChangeListener
android.annotation
Overview
Annotations
SuppressLint
TargetApi
android.app
Overview
Classes
ActionBar
ActionBar.LayoutParams
ActionBar.Tab
Activity
ActivityGroup
ActivityManager
ActivityManager.AppTask
ActivityManager.MemoryInfo
ActivityManager.ProcessErrorStateInfo
ActivityManager.RecentTaskInfo
ActivityManager.RunningAppProcessInfo
ActivityManager.RunningServiceInfo
ActivityManager.RunningTaskInfo
ActivityManager.TaskDescription
ActivityManager.TaskDescription.Builder
ActivityOptions
AlarmManager
AlarmManager.AlarmClockInfo
AlertDialog
AlertDialog.Builder
AliasActivity
AppComponentFactory
Application
ApplicationErrorReport
ApplicationErrorReport.AnrInfo
ApplicationErrorReport.BatteryInfo
ApplicationErrorReport.CrashInfo
ApplicationErrorReport.RunningServiceInfo
ApplicationExitInfo
ApplicationStartInfo
AppOpsManager
AppOpsManager.OnOpNotedCallback
AsyncNotedAppOp
AutomaticZenRule
AutomaticZenRule.Builder
BroadcastOptions
ComponentCaller
DatePickerDialog
Dialog
DialogFragment
DirectAction
DirectAction.Builder
DownloadManager
DownloadManager.Query
DownloadManager.Request
ExpandableListActivity
Fragment
Fragment.SavedState
FragmentBreadCrumbs
FragmentContainer
FragmentController
FragmentHostCallback
FragmentManager
FragmentManager.FragmentLifecycleCallbacks
FragmentManagerNonConfig
FragmentTransaction
GameManager
GameState
GrammaticalInflectionManager
Instrumentation
Instrumentation.ActivityMonitor
Instrumentation.ActivityResult
IntentService
KeyguardManager
KeyguardManager.KeyguardDismissCallback
KeyguardManager.KeyguardLock
LauncherActivity
LauncherActivity.IconResizer
LauncherActivity.ListItem
ListActivity
ListFragment
LoaderManager
LocalActivityManager
LocaleConfig
LocaleManager
MediaRouteActionProvider
MediaRouteButton
NativeActivity
Notification
Notification.Action
Notification.Action.Builder
Notification.Action.WearableExtender
Notification.BigPictureStyle
Notification.BigTextStyle
Notification.BubbleMetadata
Notification.BubbleMetadata.Builder
Notification.Builder
Notification.CallStyle
Notification.CarExtender
Notification.CarExtender.Builder
Notification.CarExtender.UnreadConversation
Notification.DecoratedCustomViewStyle
Notification.DecoratedMediaCustomViewStyle
Notification.InboxStyle
Notification.MediaStyle
Notification.MessagingStyle
Notification.MessagingStyle.Message
Notification.ProgressStyle
Notification.ProgressStyle.Point
Notification.ProgressStyle.Segment
Notification.Style
Notification.TvExtender
Notification.WearableExtender
NotificationChannel
NotificationChannelGroup
NotificationManager
NotificationManager.Policy
PendingIntent
Person
Person.Builder
PictureInPictureParams
PictureInPictureParams.Builder
PictureInPictureUiState
Presentation
ProgressDialog
RemoteAction
RemoteInput
RemoteInput.Builder
SearchableInfo
SearchManager
Service
SharedElementCallback
StatusBarManager
SyncNotedAppOp
TabActivity
TaskInfo
TaskStackBuilder
TimePickerDialog
UiAutomation
UiModeManager
VoiceInteractor
VoiceInteractor.AbortVoiceRequest
VoiceInteractor.CommandRequest
VoiceInteractor.CompleteVoiceRequest
VoiceInteractor.ConfirmationRequest
VoiceInteractor.PickOptionRequest
VoiceInteractor.PickOptionRequest.Option
VoiceInteractor.Prompt
VoiceInteractor.Request
WallpaperColors
WallpaperInfo
WallpaperManager
Interfaces
ActionBar.OnMenuVisibilityListener
ActionBar.OnNavigationListener
ActionBar.TabListener
Activity.ScreenCaptureCallback
AlarmManager.OnAlarmListener
Application.ActivityLifecycleCallbacks
Application.OnProvideAssistDataListener
AppOpsManager.OnOpActiveChangedListener
AppOpsManager.OnOpChangedListener
DatePickerDialog.OnDateSetListener
FragmentBreadCrumbs.OnBreadCrumbClickListener
FragmentManager.BackStackEntry
FragmentManager.OnBackStackChangedListener
KeyguardManager.DeviceLockedStateListener
KeyguardManager.KeyguardLockedStateListener
KeyguardManager.OnKeyguardExitResult
LoaderManager.LoaderCallbacks
Notification.Action.Extender
Notification.Extender
PendingIntent.OnFinished
SearchManager.OnCancelListener
SearchManager.OnDismissListener
SharedElementCallback.OnSharedElementsReadyListener
TimePickerDialog.OnTimeSetListener
UiAutomation.AccessibilityEventFilter
UiAutomation.OnAccessibilityEventListener
UiModeManager.ContrastChangeListener
WallpaperManager.OnColorsChangedListener
ZygotePreload
Exceptions
AuthenticationRequiredException
BackgroundServiceStartNotAllowedException
ForegroundServiceStartNotAllowedException
ForegroundServiceTypeException
Fragment.InstantiationException
InvalidForegroundServiceTypeException
MissingForegroundServiceTypeException
PendingIntent.CanceledException
RecoverableSecurityException
ServiceStartNotAllowedException
StartForegroundCalledOnStoppedServiceException
android.app.admin
Overview
Classes
ConnectEvent
DelegatedAdminReceiver
DeviceAdminInfo
DeviceAdminReceiver
DeviceAdminService
DevicePolicyIdentifiers
DevicePolicyManager
DevicePolicyManager.InstallSystemUpdateCallback
DevicePolicyResources
DevicePolicyResourcesManager
DnsEvent
FactoryResetProtectionPolicy
FactoryResetProtectionPolicy.Builder
FreezePeriod
ManagedSubscriptionsPolicy
NetworkEvent
PackagePolicy
PolicyUpdateReceiver
PolicyUpdateResult
PreferentialNetworkServiceConfig
PreferentialNetworkServiceConfig.Builder
SecurityLog
SecurityLog.SecurityEvent
SystemUpdateInfo
SystemUpdatePolicy
TargetUser
WifiSsidPolicy
Interfaces
DevicePolicyManager.OnClearApplicationUserDataListener
Exceptions
SystemUpdatePolicy.ValidationFailedException
UnsafeStateException
android.app.appfunctions
Overview
Classes
AppFunctionManager
AppFunctionService
ExecuteAppFunctionRequest
ExecuteAppFunctionRequest.Builder
ExecuteAppFunctionResponse
Exceptions
AppFunctionException
android.app.appsearch
Overview
Classes
AppSearchBatchResult
AppSearchBatchResult.Builder
AppSearchBlobHandle
AppSearchManager
AppSearchManager.SearchContext
AppSearchManager.SearchContext.Builder
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
AppSearchSession
CommitBlobResponse
EmbeddingVector
EnterpriseGlobalSearchSession
GenericDocument
GenericDocument.Builder
GetByDocumentIdRequest
GetByDocumentIdRequest.Builder
GetSchemaResponse
GetSchemaResponse.Builder
GlobalSearchSession
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