android.app


Interfaces

OnMenuVisibilityListener

Listener for receiving events when action bar menus are shown or hidden.

OnNavigationListener

Listener interface for ActionBar navigation events.

TabListener

Callback interface invoked when a tab is focused, unfocused, added, or removed.

ScreenCaptureCallback

Interface for observing screen captures of an Activity.

OnAlarmListener

Direct-notification alarms: the requester must be running continuously from the time the alarm is set to the time it is delivered, or delivery will fail.

ActivityLifecycleCallbacks

OnProvideAssistDataListener

Callback interface for use with Application#registerOnProvideAssistDataListener and Application#unregisterOnProvideAssistDataListener.

OnOpActiveChangedListener

Callback for notification of changes to operation active state.

OnOpChangedListener

Callback for notification of changes to operation state.

OnDateSetListener

The listener used to indicate the user has finished selecting a date.

OnBreadCrumbClickListener

Interface to intercept clicks on the bread crumbs.

BackStackEntry

Representation of an entry on the fragment back stack, as created with FragmentTransaction.addToBackStack().

OnBackStackChangedListener

Interface to watch for changes to the back stack.

KeyguardLockedStateListener

Listener for keyguard locked state changes.

OnKeyguardExitResult

Callback passed to KeyguardManager#exitKeyguardSecurely to notify caller of result.

LoaderCallbacks

Callback interface for a client to interact with the manager.

Extender

Extender interface for use with Builder#extend.

OnFinished

Callback interface for discovering when a send operation has completed.

OnCancelListener

See SearchManager#setOnCancelListener for configuring your activity to monitor search UI state.

OnDismissListener

See SearchManager#setOnDismissListener for configuring your activity to monitor search UI state.

OnSharedElementsReadyListener

Listener to be called after android.app.SharedElementCallback#onSharedElementsArrived(java.util.List,java.util.List,android.app.SharedElementCallback.OnSharedElementsReadyListener) when the shared elements are ready to be hidden in the source Activity and shown in the destination Activity.

OnTimeSetListener

The callback interface used to indicate the user is done filling in the time (e.g. they clicked on the 'OK' button).

AccessibilityEventFilter

Listener for filtering accessibility events.

OnAccessibilityEventListener

Listener for observing the AccessibilityEvent stream.

ContrastChangeListener

Listener for the UI contrast.

OnColorsChangedListener

Interface definition for a callback to be invoked when colors change on a wallpaper.

ZygotePreload

This is the interface to be implemented for the class that is specified by the android:zygotePreloadName of the <application> tag.

Classes

ActionBar

A primary toolbar within the activity that may display the activity title, application-level navigation affordances, and other interactive items.

Activity

An activity is a single, focused thing that the user can do.

ActivityGroup

A screen that contains and runs multiple embedded activities.

ActivityManager

This class gives information about, and interacts with, activities, services, and the containing process.

ActivityOptions

Helper class for building an options Bundle that can be used with Context.startActivity(Intent, Bundle) and related methods.

AlarmManager

This class provides access to the system alarm services.

AlertDialog

A subclass of Dialog that can display one, two or three buttons.

AliasActivity

Stub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data.

AppComponentFactory

Interface used to control the instantiation of manifest elements.

Application

Base class for maintaining global application state.

ApplicationErrorReport

Describes an application error.

ApplicationExitInfo

Describes the information of an application process's death.

ApplicationStartInfo

Describes information related to an application process's startup.

AppOpsManager

App-ops are used for two purposes: Access control and tracking.

AsyncNotedAppOp

When an app-op is noted and the app the app-op is noted for has a AppOpsManager.OnOpNotedCallback registered the note-event needs to be delivered to the callback.

AutomaticZenRule

Rule instance information for a zen (aka DND or Attention Management) mode.

BroadcastOptions

Helper class for building an options Bundle that can be used with Context.sendBroadcast(Intent) and related methods.

ComponentCaller

Represents the app that launched the component.

DatePickerDialog

A simple dialog containing an android.widget.DatePicker.

Dialog

Base class for Dialogs.

DialogFragment

A fragment that displays a dialog window, floating on top of its activity's window.

DirectAction

Represents an abstract action that can be perform on this app.

DownloadManager

The download manager is a system service that handles long-running HTTP downloads.

ExpandableListActivity

An activity that displays an expandable list of items by binding to a data source implementing the ExpandableListAdapter, and exposes event handlers when the user selects an item.

Fragment

A Fragment is a piece of an application's user interface or behavior that can be placed in an Activity.

FragmentBreadCrumbs

Helper class for showing "bread crumbs" representing the fragment stack in an activity.

FragmentContainer

Callbacks to a Fragment's container.

FragmentController

Provides integration points with a FragmentManager for a fragment host.

FragmentHostCallback

Integration points with the Fragment host.

FragmentManager

Interface for interacting with Fragment objects inside of an Activity

While the FragmentManager API was introduced in android.os.Build.VERSION_CODES#HONEYCOMB, a version of the API at is also available for use on older platforms through androidx.

FragmentManagerNonConfig

FragmentManagerNonConfig stores the retained instance fragments across activity recreation events.

FragmentTransaction

API for performing a set of Fragment operations.

GameManager

The GameManager allows system apps to modify and query the game mode of apps.

GameState

State of the game passed to the GameManager.

GrammaticalInflectionManager

This class allow applications to control granular grammatical inflection settings (such as per-app grammatical gender).

Instrumentation

Base class for implementing application instrumentation code.

IntentService

IntentService is an extension of the Service component class that handles asynchronous requests (expressed as Intents) on demand.

KeyguardManager

Class to manage and query the state of the lock screen (also known as Keyguard).

LauncherActivity

Displays a list of all activities which can be performed for a given intent.

ListActivity

An activity that displays a list of items by binding to a data source such as an array or Cursor, and exposes event handlers when the user selects an item.

ListFragment

A fragment that displays a list of items by binding to a data source such as an array or Cursor, and exposes event handlers when the user selects an item.

LoaderManager

Interface associated with an Activity or Fragment for managing one or more android.content.Loader instances associated with it.

LocalActivityManager

Helper class for managing multiple running embedded activities in the same process.

LocaleConfig

The LocaleConfig of an application.

LocaleManager

This class gives access to system locale services.

MediaRouteActionProvider

The media route action provider displays a media route button in the application's ActionBar to allow the user to select routes and to control the currently selected route.

MediaRouteButton

NativeActivity

Convenience for implementing an activity that will be implemented purely in native code.

Notification

A class that represents how a persistent notification is to be presented to the user using the android.app.NotificationManager.

NotificationChannel

A representation of settings that apply to a collection of similarly themed notifications.

NotificationChannelGroup

A grouping of related notification channels.

NotificationManager

Class to notify the user of events that happen.

PendingIntent

A description of an Intent and target action to perform with it.

Person

Provides an immutable reference to an entity that appears repeatedly on different surfaces of the platform.

PictureInPictureParams

Represents a set of parameters used to initialize and update an Activity in picture-in-picture mode.

PictureInPictureUiState

Used by Activity#onPictureInPictureUiStateChanged(PictureInPictureUiState).

Presentation

Base class for presentations.

ProgressDialog

A dialog showing a progress indicator and an optional text message or view.

RemoteAction

Represents a remote action that can be called from another process.

RemoteInput

A RemoteInput object specifies input to be collected from a user to be passed along with an intent inside a android.app.PendingIntent that is sent.

SearchableInfo

Searchability meta-data for an activity.

SearchManager

This class provides access to the system search services.

Service

A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.

SharedElementCallback

Listener provided in Activity#setEnterSharedElementCallback(SharedElementCallback) and Activity#setExitSharedElementCallback(SharedElementCallback) as well as Fragment#setEnterSharedElementCallback(SharedElementCallback) and Fragment#setExitSharedElementCallback(SharedElementCallback) to monitor the Shared element transitions.

StatusBarManager

Allows an app to control the status bar.

SyncNotedAppOp

Description of an app-op that was noted for the current process.

TabActivity

For apps developing against android.os.Build.VERSION_CODES#HONEYCOMB or later, tabs are typically presented in the UI using the new ActionBar.newTab() and related APIs for placing tabs within their action bar area.

TaskInfo

Stores information about a particular Task.

TaskStackBuilder

Utility class for constructing synthetic back stacks for cross-task navigation on Android 3.

TimePickerDialog

A dialog that prompts the user for the time of day using a TimePicker.

UiAutomation

Class for interacting with the device's UI by simulation user actions and introspection of the screen content.

UiModeManager

This class provides access to the system uimode services.

VoiceInteractor

Interface for an Activity to interact with the user through voice.

WallpaperColors

Provides information about the colors of a wallpaper.

WallpaperInfo

This class is used to specify meta information of a wallpaper service.

WallpaperManager

Provides access to the system wallpaper.

Exceptions

AuthenticationRequiredException

Specialization of SecurityException that is thrown when authentication is needed from the end user before viewing the content.

BackgroundServiceStartNotAllowedException

Exception thrown when an app tries to start a background Service when it's not allowed to do so.

ForegroundServiceStartNotAllowedException

Exception thrown when an app tries to start a foreground Service when it's not allowed to do so.

ForegroundServiceTypeException

Base exception thrown when an app tries to start a foreground Service without a valid type.

InvalidForegroundServiceTypeException

Exception thrown when an app tries to start a foreground Service with an invalid type.

MissingForegroundServiceTypeException

Exception thrown when an app tries to start a foreground Service without a type.

RecoverableSecurityException

Specialization of SecurityException that contains additional information about how to involve the end user to recover from the exception.

ServiceStartNotAllowedException

Exception thrown when an app tries to start a Service when it's not allowed to do so.

StartForegroundCalledOnStoppedServiceException

Exception thrown when android.