Android.App Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides bindings for Android classes that implement the application model.
Classes
| Name | Description |
|---|---|
| ActionBar |
A primary toolbar within the activity that may display the activity title, application-level navigation affordances, and other interactive items. |
| ActionBar.LayoutParams |
Per-child layout information associated with action bar custom views. |
| ActionBar.MenuVisibilityEventArgs |
Provides data for the MenuVisibility event. |
| ActionBar.NavigationEventArgs | |
| ActionBar.Tab |
A tab in the action bar. |
| ActionBar.TabEventArgs |
Provides data for the E:Android.App.ActionBar+Tab.TabReselected, E:Android.App.ActionBar+Tab.TabSelected, and E:Android.App.ActionBar+Tab.TabUnselected events. |
| ActionBar.TabReselectedEventArgs | |
| ActionBar.TabSelectedEventArgs | |
| ActionBar.TabUnselectedEventArgs | |
| Activity |
An activity is a single, focused thing that the user can do. |
| Activity.InterfaceConsts | |
| ActivityAttribute |
Generates a |
| 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. |
| ActivityManager.AppTask |
The AppTask allows you to manage your own application's tasks. |
| ActivityManager.MemoryInfo |
Information you can retrieve about the available memory through
|
| ActivityManager.MemoryInfo.InterfaceConsts | |
| ActivityManager.ProcessErrorStateInfo |
Information you can retrieve about any processes that are in an error condition. |
| ActivityManager.ProcessErrorStateInfo.InterfaceConsts | |
| ActivityManager.RecentTaskInfo |
Information you can retrieve about tasks that the user has most recently started or visited. |
| ActivityManager.RecentTaskInfo.InterfaceConsts | |
| ActivityManager.RunningAppProcessInfo |
Information you can retrieve about a running process. |
| ActivityManager.RunningAppProcessInfo.InterfaceConsts | |
| ActivityManager.RunningServiceInfo |
Information you can retrieve about a particular Service that is currently running in the system. |
| ActivityManager.RunningServiceInfo.InterfaceConsts | |
| ActivityManager.RunningTaskInfo |
Information you can retrieve about a particular task that is currently "running" in the system. |
| ActivityManager.RunningTaskInfo.InterfaceConsts | |
| ActivityManager.TaskDescription |
Information you can set and retrieve about the current activity within the recent task list. |
| ActivityManager.TaskDescription.Builder |
Provides a convenient way to set the fields of a TaskDescription when creating a new instance. |
| ActivityManager.TaskDescription.InterfaceConsts | |
| ActivityOptions |
Helper class for building an options Bundle that can be used with
|
| ActivityOptions.LaunchCookie |
An opaque token used to track and identify a specific activity launch request. |
| ActivityOptions.LaunchCookie.InterfaceConsts | |
| AlarmManager |
This class provides access to the system alarm services. |
| AlarmManager.AlarmClockInfo |
An immutable description of a scheduled "alarm clock" event. |
| AlarmManager.AlarmClockInfo.InterfaceConsts | |
| AlertDialog |
A subclass of Dialog that can display one, two or three buttons. |
| AlertDialog.Builder |
Builds AlertDialog instances. |
| AliasActivity |
Stub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data. |
| AnrTypes |
Defines the types of Application Not Responding (ANR) errors. |
| AnrWarningResult |
Describes the information about a potential ANR before the timeout is reached. |
| AnrWarningResult.InterfaceConsts | |
| AppComponentFactory |
Interface used to control the instantiation of manifest elements. |
| AppInteractionAttribution |
Represents attribution information for an app interaction, detailing the context and nature of the interaction that triggered it. |
| AppInteractionAttribution.Builder |
Builder for |
| AppInteractionAttribution.InterfaceConsts | |
| AppInteractionContract |
The contract between the App Interaction history provider and applications with read permission. |
| AppInteractionContract.InterfaceConsts | |
| AppInteractionDeniedException |
Exception thrown when an app interaction is denied. |
| AppInteractionException |
Exception thrown when an app interaction operation fails. |
| AppInteractionManager |
Provides access to App Interaction access control APIs. |
| AppInteractionSession |
Represents an app interaction session. |
| AppInteractionSession.CreateParams |
Parameters to create an |
| AppInteractionSession.CreateParams.Builder | |
| AppInteractionSession.LifecycleEventArgs | |
| AppInteractionSession.UpdateParams |
Parameters to update an |
| AppInteractionSession.UpdateParams.Builder | |
| Application |
Base class for maintaining global application state. |
| Application.InterfaceConsts | |
| Application.ProvideAssistDataEventArgs | |
| ApplicationAttribute |
Generates a |
| ApplicationErrorReport |
Describes an application error. |
| ApplicationErrorReport.AnrInfo |
Describes an application not responding error. |
| ApplicationErrorReport.BatteryInfo |
Describes a battery usage report. |
| ApplicationErrorReport.CrashInfo |
Describes an application crash. |
| ApplicationErrorReport.InterfaceConsts | |
| ApplicationErrorReport.RunningServiceInfo |
Describes a running service report. |
| ApplicationExitInfo |
Describes the information of an application process's death. |
| ApplicationExitInfo.AnrInfo | |
| ApplicationExitInfo.AnrInfo.InterfaceConsts | |
| ApplicationExitInfo.InterfaceConsts | |
| ApplicationStartInfo |
Describes information related to an application process's startup. |
| ApplicationStartInfo.InterfaceConsts | |
| AppOpsManager |
App-ops are used for two purposes: Access control and tracking. |
| AppOpsManager.OnOpNotedCallback |
Callback an app can |
| AppOpsManager.OpActiveChanged2EventArgs | |
| AppOpsManager.OpActiveChangedEventArgs | |
| AppOpsManager.OpChanged2EventArgs | |
| AppOpsManager.OpChangedEventArgs | |
| AsyncNotedAppOp |
When an |
| AsyncNotedAppOp.InterfaceConsts | |
| AuthenticationRequiredException |
Specialization of |
| AuthenticationRequiredException.InterfaceConsts | |
| AutomaticZenRule |
Rule instance information for a zen (aka DND or Attention Management) mode. |
| AutomaticZenRule.Builder |
Builds AutomaticZenRule instances. |
| AutomaticZenRule.InterfaceConsts | |
| BackgroundServiceStartNotAllowedException |
Exception thrown when an app tries to start a background |
| BackgroundServiceStartNotAllowedException.InterfaceConsts | |
| BroadcastOptions |
Helper class for building an options Bundle that can be used with
|
| ComponentCaller |
Represents the app that launched the component. |
| DatePickerDialog |
A simple dialog containing an |
| DatePickerDialog.DateSetEventArgs | |
| Dialog |
Base class for Dialogs. |
| Dialog.InterfaceConsts | |
| 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. |
| DirectAction.Builder |
Builder for construction of DirectAction. |
| DirectAction.InterfaceConsts | |
| DownloadManager |
The download manager is a system service that handles long-running HTTP downloads. |
| DownloadManager.Query |
This class may be used to filter download manager queries. |
| DownloadManager.Request |
This class contains all the information necessary to request a new download. |
| 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. |
| ForegroundServiceStartNotAllowedException |
Exception thrown when an app tries to start a foreground |
| ForegroundServiceStartNotAllowedException.InterfaceConsts | |
| ForegroundServiceTypeException |
Base exception thrown when an app tries to start a foreground |
| Fragment |
A Fragment is a piece of an application's user interface or behavior
that can be placed in an |
| Fragment.InstantiationException |
Thrown by |
| Fragment.InterfaceConsts | |
| Fragment.SavedState |
State information that has been retrieved from a fragment instance
through |
| Fragment.SavedState.InterfaceConsts | |
| FragmentBreadCrumbs |
Helper class for showing "bread crumbs" representing the fragment stack in an activity. |
| FragmentBreadCrumbs.BreadCrumbClickEventArgs |
Provides data for the BreadCrumbClick event. |
| FragmentContainer |
Callbacks to a |
| FragmentController |
Provides integration points with a |
| FragmentHostCallback |
Integration points with the Fragment host. |
| FragmentManager |
Interface for interacting with |
| FragmentManager.FragmentLifecycleCallbacks |
Callback interface for listening to fragment state changes that happen within a given FragmentManager. |
| 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. |
| GameState.InterfaceConsts | |
| GrammaticalInflectionManager |
This class allow applications to control granular grammatical inflection settings (such as per-app grammatical gender). |
| HandoffActivityData |
Represents information needed to recreate an activity on a remote device owned by the user. |
| HandoffActivityData.Builder |
Builder for |
| HandoffActivityData.InterfaceConsts | |
| HandoffActivityDataRequestInfo |
Represents a request made by the platform to hand off an activity. |
| HandoffActivityParams |
Represents options specifying how an activity will be handed off to other devices. |
| HandoffActivityParams.Builder |
Builder for |
| HandoffActivityParams.InterfaceConsts | |
| InfeasibleActivityOptionsException |
This exception is thrown when a call to |
| Instrumentation |
Base class for implementing application instrumentation code. |
| Instrumentation.ActivityMonitor |
Information about a particular kind of Intent that is being monitored. |
| Instrumentation.ActivityResult |
Description of a Activity execution result to return to the original activity. |
| InstrumentationAttribute | |
| IntentFilterAttribute |
Generates the |
| IntentService |
This class was deprecated in API level 30. |
| InvalidForegroundServiceTypeException |
Exception thrown when an app tries to start a foreground |
| InvalidForegroundServiceTypeException.InterfaceConsts | |
| KeyguardManager |
Class to manage and query the state of the lock screen (also known as Keyguard). |
| KeyguardManager.DeviceLockedStateEventArgs | |
| KeyguardManager.KeyguardDismissCallback |
Callback passed to
|
| KeyguardManager.KeyguardLock |
Handle returned by |
| KeyguardManager.KeyguardLockedStateEventArgs | |
| LauncherActivity |
Displays a list of all activities which can be performed for a given intent. |
| LauncherActivity.IconResizer |
Utility class to resize icons to match default icon size. |
| LauncherActivity.ListItem |
An item in the list |
| LayoutAttribute | |
| 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 |
| LocalActivityManager |
Helper class for managing multiple running embedded activities in the same process. |
| LocaleConfig |
The LocaleConfig of an application. |
| LocaleConfig.InterfaceConsts | |
| LocaleManager |
This class gives access to system locale services. |
| MediaRouteActionProvider |
The media route action provider displays a |
| MediaRouteButton |
Displays and selects available media routes. |
| MemoryBudgetManager |
This class is the client interface to memory budgets for applications and processes. |
| MemoryBudgetManager.OverBudgetEventArgs | |
| MetaDataAttribute |
Generates the |
| MissingForegroundServiceTypeException |
Exception thrown when an app tries to start a foreground |
| MissingForegroundServiceTypeException.InterfaceConsts | |
| 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 NotificationManager. |
| Notification.Action |
Structure to encapsulate a named action that can be shown as part of this notification. |
| Notification.Action.Builder |
Builder class for Action objects. |
| Notification.Action.InterfaceConsts | |
| Notification.Action.WearableExtender |
Wearable extender for notification actions. |
| Notification.BigPictureStyle |
Helper class for generating large-format notifications that include a large image attachment. |
| Notification.BigTextStyle |
Helper class for generating large-format notifications that include a lot of text. |
| Notification.BridgedNotificationMetadata |
Encapsulates the information needed to display a notification as a bridged notification. |
| Notification.BridgedNotificationMetadata.InterfaceConsts | |
| Notification.BubbleMetadata |
Encapsulates the information needed to display a notification as a bubble. |
| Notification.BubbleMetadata.Builder |
Builder to construct a BubbleMetadata object. |
| Notification.BubbleMetadata.InterfaceConsts | |
| Notification.Builder |
Builder class for Notification objects. |
| Notification.CallStyle |
Helper class for generating large-format notifications that include a caller and required actions, such as an incoming call with answer / decline. |
| Notification.CarExtender |
Helper class to add Android Auto extensions to notifications. |
| Notification.CarExtender.Builder |
Builder class for CarExtender.UnreadConversation objects. |
| Notification.CarExtender.UnreadConversation |
A class which holds the unread messages from a conversation. |
| Notification.DecoratedCustomViewStyle |
Notification style for custom views that are decorated by the system Instead of providing a notification that is completely custom, a developer can set this style and still obtain system decorations like the notification header with the expand affordance and actions. |
| Notification.DecoratedMediaCustomViewStyle |
Notification style for media custom views that are decorated by the system Instead of providing a media notification that is completely custom, a developer can set this style and still obtain system decorations like the notification header with the expand affordance and actions. |
| Notification.InboxStyle |
Helper class for generating large-format notifications that include a list of (up to 5) strings. |
| Notification.InterfaceConsts | |
| Notification.MediaStyle |
Notification style for media playback notifications. |
| Notification.MessagingStyle |
Helper class for generating large-format notifications that include multiple back-and-forth messages of varying types between any number of people. |
| Notification.MessagingStyle.Message |
An object representing a simple message or piece of media within a mixed-media message. |
| Notification.Metric |
A metric, used with MetricStyle, and which has a value and a label. |
| Notification.Metric.FixedDate |
A metric value for showing a date. |
| Notification.Metric.FixedFloat |
Metric corresponding to a floating point value. |
| Notification.Metric.FixedInt |
Metric corresponding to an integer value. |
| Notification.Metric.FixedText |
Metric corresponding to a text value. |
| Notification.Metric.FixedTime |
A metric value for showing a clock time. |
| Notification.Metric.MetricValue |
A superclass for the various value types used by the Metric class. |
| Notification.Metric.TimeDifference |
This represents a timer, a stopwatch, or a countdown to an event. |
| Notification.MetricStyle |
A notification style which shows up to 3 metrics when expanded. |
| Notification.ProgressStyle |
A Notification Style used to define a notification whose expanded state includes a highly customizable progress bar with segments, points, a custom tracker icon, and custom icons at the start and end of the progress bar. |
| Notification.ProgressStyle.Point |
A point within the progress bar, defining its position and color. |
| Notification.ProgressStyle.Segment |
A segment of the progress bar, which defines its length and color. |
| Notification.ProjectedExtender |
Helper class to add projection-specific extensions to a notification. |
| Notification.Style |
An object that can apply a rich notification style to a Notification.Builder object. |
| Notification.TvExtender |
Helper class to add Android TV extensions to notifications. |
| Notification.WearableExtender |
Helper class to add wearable extensions to notifications. |
| NotificationChannel |
A representation of settings that apply to a collection of similarly themed notifications. |
| NotificationChannel.InterfaceConsts | |
| NotificationChannelGroup |
A grouping of related notification channels. |
| NotificationChannelGroup.InterfaceConsts | |
| NotificationManager |
Class to notify the user of events that happen. |
| NotificationManager.Policy |
Notification policy configuration. |
| NotificationManager.Policy.InterfaceConsts | |
| PendingIntent |
A description of an Intent and target action to perform with it. |
| PendingIntent.CanceledException |
Exception thrown when trying to send through a PendingIntent that has been canceled or is otherwise no longer able to execute the request. |
| PendingIntent.InterfaceConsts | |
| PermissionAttribute | |
| PermissionGroupAttribute | |
| PermissionTreeAttribute | |
| Person |
Provides an immutable reference to an entity that appears repeatedly on different surfaces of the platform. |
| Person.Builder |
Builder for the immutable |
| Person.InterfaceConsts | |
| PictureInPictureParams |
Represents a set of parameters used to initialize and update an Activity in picture-in-picture mode. |
| PictureInPictureParams.Builder |
Builder class for |
| PictureInPictureParams.InterfaceConsts | |
| PictureInPictureUiState |
Used by |
| PictureInPictureUiState.InterfaceConsts | |
| Presentation |
Base class for presentations. |
| ProgressDialog |
A dialog showing a progress indicator and an optional text message or view. |
| PropertyAttribute | |
| RecoverableSecurityException |
Specialization of |
| RecoverableSecurityException.InterfaceConsts | |
| RemoteAction |
Represents a remote action that can be called from another process. |
| RemoteAction.InterfaceConsts | |
| RemoteInput |
A |
| RemoteInput.Builder |
Builder class for |
| RemoteInput.InterfaceConsts | |
| SearchableInfo |
Searchability meta-data for an activity. |
| SearchableInfo.InterfaceConsts | |
| 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. |
| Service.InterfaceConsts | |
| ServiceAttribute |
Generates a |
| ServiceStartNotAllowedException |
Exception thrown when an app tries to start a |
| SharedElementCallback |
Listener provided in
|
| StartForegroundCalledOnStoppedServiceException |
Exception thrown when |
| StartForegroundCalledOnStoppedServiceException.InterfaceConsts | |
| StatusBarManager |
Allows an app to control the status bar. |
| SupportsGLTextureAttribute |
Declares a single GL texture compression format that the application supports,
generating a |
| SyncNotedAppOp |
Description of an app-op that was noted for the current process. |
| SyncNotedAppOp.InterfaceConsts | |
| TabActivity |
For apps developing against |
| TaskInfo |
Stores information about a particular Task. |
| TaskLocation |
Represents location of an |
| 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
|
| TimePickerDialog.TimeSetEventArgs | |
| UiAutomation |
Class for interacting with the device's UI by simulation user actions and introspection of the screen content. |
| UiAutomation.AccessibilityEventEventArgs |
Provides data for the AccessibilityEvent event. |
| UiModeManager |
This class provides access to the system uimode services. |
| UiModeManager.ContrastChangeEventArgs | |
| UsesFeatureAttribute | |
| UsesLibraryAttribute | |
| UsesPermissionAttribute | |
| VoiceInteractor |
Interface for an |
| VoiceInteractor.AbortVoiceRequest |
Reports that the current interaction can not be complete with voice, so the application will need to switch to a traditional input UI. |
| VoiceInteractor.CommandRequest |
Execute a vendor-specific command using the trusted system VoiceInteractionService. |
| VoiceInteractor.CompleteVoiceRequest |
Reports that the current interaction was successfully completed with voice, so the application can report the final status to the user. |
| VoiceInteractor.ConfirmationRequest |
Confirms an operation with the user via the trusted system VoiceInteractionService. |
| VoiceInteractor.PickOptionRequest |
Select a single option from multiple potential options with the user via the trusted system VoiceInteractionService. |
| VoiceInteractor.PickOptionRequest.Option |
Represents a single option that the user may select using their voice. |
| VoiceInteractor.PickOptionRequest.Option.InterfaceConsts | |
| VoiceInteractor.Prompt |
A set of voice prompts to use with the voice interaction system to confirm an action, select an option, or do similar operations. |
| VoiceInteractor.Prompt.InterfaceConsts | |
| VoiceInteractor.Request |
Base class for voice interaction requests that can be submitted to the interactor. |
| WallpaperColors |
Provides information about the colors of a wallpaper. |
| WallpaperColors.InterfaceConsts | |
| WallpaperInfo |
This class is used to specify meta information of a wallpaper service. |
| WallpaperInfo.InterfaceConsts | |
| WallpaperManager |
Provides access to the system wallpaper. |
| WallpaperManager.ColorsChangedEventArgs | |
Interfaces
| Name | Description |
|---|---|
| ActionBar.IOnMenuVisibilityListener |
Listener for receiving events when action bar menus are shown or hidden. |
| ActionBar.IOnNavigationListener |
Listener interface for ActionBar navigation events. |
| ActionBar.ITabListener |
Callback interface invoked when a tab is focused, unfocused, added, or removed. |
| Activity.IScreenCaptureCallback |
Interface for observing screen captures of an |
| AlarmManager.IOnAlarmListener |
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. |
| AppInteractionSession.ILifecycleListener |
Listener for session lifecycle events. |
| Application.IActivityLifecycleCallbacks |
Receives callbacks for activity lifecycle state changes in an Application. |
| Application.IOnProvideAssistDataListener |
Callback interface for use with |
| AppOpsManager.IOnOpActiveChangedListener |
Callback for notification of changes to operation active state. |
| AppOpsManager.IOnOpChangedListener |
Callback for notification of changes to operation state. |
| DatePickerDialog.IOnDateSetListener |
The listener used to indicate the user has finished selecting a date. |
| FragmentBreadCrumbs.IOnBreadCrumbClickListener |
Interface to intercept clicks on the bread crumbs. |
| FragmentManager.IBackStackEntry |
Representation of an entry on the fragment back stack, as created
with |
| FragmentManager.IOnBackStackChangedListener |
Interface to watch for changes to the back stack. |
| IZygotePreload |
This is the interface to be implemented for the class that is specified by the
|
| KeyguardManager.IDeviceLockedStateListener |
Listener for device locked state changes. |
| KeyguardManager.IKeyguardLockedStateListener |
Listener for keyguard locked state changes. |
| KeyguardManager.IOnKeyguardExitResult |
Callback passed to |
| LoaderManager.ILoaderCallbacks |
Callback interface for a client to interact with the manager. |
| MemoryBudgetManager.IOnOverBudgetListener |
The callback that is notified when a budget is exceeded. |
| Notification.Action.IExtender |
Extender interface for use with Builder.extend. |
| Notification.IExtender |
Extender interface for use with Builder.extend. |
| PendingIntent.IOnFinished |
Callback interface for discovering when a send operation has completed. |
| SearchManager.IOnCancelListener |
See |
| SearchManager.IOnDismissListener |
See |
| SharedElementCallback.IOnSharedElementsReadyListener |
Listener to be called after |
| TimePickerDialog.IOnTimeSetListener |
The callback interface used to indicate the user is done filling in the time (e. |
| UiAutomation.IAccessibilityEventFilter |
Listener for filtering accessibility events. |
| UiAutomation.IOnAccessibilityEventListener |
Listener for observing the |
| UiModeManager.IContrastChangeListener |
Listener for the UI contrast. |
| WallpaperManager.IOnColorsChangedListener |
Interface definition for a callback to be invoked when colors change on a wallpaper. |
Enums
Remarks
This namespace contains the managed bindings for the android.app package.
Android platform documentation for android.app.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.