Android.App Namespace

Contains high-level classes encapsulating the overall Android application model.

Remarks

Contains high-level classes encapsulating the overall Android application model.

An Android application is defined using one or more of Android's four core application components. Two such application components are defined in this package: Android.App.Activity and Android.App.Service. The other two components are from the Android.Content package: Android.Content.BroadcastReceiver and Android.Content.ContentProvider.

An Android.App.Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. An activity can start other activities, including activities that live in separate applications.

A Android.App.Service is an application component that can perform long-running operations in the background without a user interface. For example, a service can handle network transactions, play music, or work with a content provider without the user being aware of the work going on.

The Android.App.Fragment class is also an important part of an application's design—especially when designing for large screen devices, such as tablets. A fragment defines a distinct part of an activity's behavior, including the associated UI. It has its own lifecycle that is similar to that of the activity and can exist alongside other fragments that are embedded in the activity. While an activity is running, you can add and remove fragments and include each fragment in a back stack that's managed by the activity—allowing the user to navigate backwards through the fragment states, without leaving the activity.

This package also defines application utilities, such as dialogs, notifications, and the action bar.

For information about using some the classes in this package, see the following documents: Activities, Services, Fragments, Using the Action Bar, Creating Dialogs, and Notifying the User.

Classes

TypeReason
ActionBarA primary toolbar within the activity that may display the activity title, application-level navigation affordances, and other interactive items.
ActionBar+IOnMenuVisibilityListenerListener for receiving events when action bar menus are shown or hidden.
ActionBar+IOnNavigationListenerListener interface for ActionBar navigation events.
ActionBar+ITabListenerCallback interface invoked when a tab is focused, unfocused, added, or removed.
ActionBar+LayoutParamsPer-child layout information associated with action bar custom views.
ActionBar+MenuVisibilityEventArgsProvides data for the Android.App.ActionBar.MenuVisibility event.
ActionBar+NavigationEventArgsDocumentation for this section has not yet been entered.
ActionBar+TabA tab in the action bar.
ActionBar+TabEventArgsProvides data for the Android.App.ActionBar.Tab.TabReselected, Android.App.ActionBar.Tab.TabSelected, and Android.App.ActionBar.Tab.TabUnselected events.
ActionBar+TabReselectedEventArgsDocumentation for this section has not yet been entered.
ActionBar+TabSelectedEventArgsDocumentation for this section has not yet been entered.
ActionBar+TabUnselectedEventArgsDocumentation for this section has not yet been entered.
ActionBarDisplayOptionsEnumerates values returned by several types and taken as a parameter of the Android.App.ActionBar.SetDisplayOptions, and Android.App.ActionBar.SetDisplayOptions members.
ActionBarNavigationModeEnumerates values returned by several types.
ActivityAn activity is a single, focused thing that the user can do.
Activity+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityAttribute Generates a /manifest/application/activity element within AndroidManifest.xml.
ActivityGroupA screen that contains and runs multiple embedded activities.
ActivityManagerInteract with the overall activities running in the system.
ActivityManager+AppTaskDocumentation for this section has not yet been entered.
ActivityManager+MemoryInfoInformation you can retrieve about the available memory through Android.App.ActivityManager.GetMemoryInfo(Android.App.ActivityManager.MemoryInfo).
ActivityManager+MemoryInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+ProcessErrorStateInfoInformation you can retrieve about any processes that are in an error condition.
ActivityManager+ProcessErrorStateInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+RecentTaskInfoInformation you can retrieve about tasks that the user has most recently started or visited.
ActivityManager+RecentTaskInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+RunningAppProcessInfoInformation you can retrieve about a running process.
ActivityManager+RunningAppProcessInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+RunningServiceInfoInformation you can retrieve about a particular Service that is currently running in the system.
ActivityManager+RunningServiceInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+RunningTaskInfoInformation you can retrieve about a particular task that is currently "running" in the system.
ActivityManager+RunningTaskInfo+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityManager+TaskDescriptionDocumentation for this section has not yet been entered.
ActivityManager+TaskDescription+InterfaceConstsDocumentation for this section has not yet been entered.
ActivityOptionsHelper class for building an options Bundle that can be used with Android.Content.Context.StartActivity(Android.Content.Intent, Android.OS.Bundle) and related methods.
AlarmManagerThis class provides access to the system alarm services.
AlarmManager+AlarmClockInfoDocumentation for this section has not yet been entered.
AlarmManager+AlarmClockInfo+InterfaceConstsDocumentation for this section has not yet been entered.
AlarmTypeEnumerates values returned by several methods of Android.App.AlarmType and taken as a parameter of several methods of Android.App.AlarmManager.
AlertDialogA subclass of Dialog that can display one, two or three buttons.
AlertDialog+BuilderDocumentation for this section has not yet been entered.
AliasActivityStub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data.
ApplicationBase class for those who need to maintain global application state.
Application+IActivityLifecycleCallbacksDocumentation for this section has not yet been entered.
Application+InterfaceConstsDocumentation for this section has not yet been entered.
Application+IOnProvideAssistDataListenerCallback interface for use with Android.App.Application.RegisterOnProvideAssistDataListener(Android.App.Application.IOnProvideAssistDataListener) and Android.App.Application.UnregisterOnProvideAssistDataListener(Android.App.Application.IOnProvideAssistDataListener).
Application+ProvideAssistDataEventArgsDocumentation for this section has not yet been entered.
ApplicationAttribute Generates a /manifest/application element within AndroidManifest.xml.
ApplicationErrorReportDescribes an application error.
ApplicationErrorReport+AnrInfoDescribes an application not responding error.
ApplicationErrorReport+BatteryInfoDescribes a battery usage report.
ApplicationErrorReport+CrashInfoDescribes an application crash.
ApplicationErrorReport+InterfaceConstsDocumentation for this section has not yet been entered.
ApplicationErrorReport+RunningServiceInfoDescribes a running service report.
ApplicationErrorReportTypeEnumerates values returned by several types.
AppOpsManagerAPI for interacting with "application operation" tracking.
AppOpsManager+IOnOpChangedListenerDocumentation for this section has not yet been entered.
AppOpsManager+OpChangedEventArgsDocumentation for this section has not yet been entered.
AppOpsManagerModeEnumerates values returned by several types.
BreadCrumbClickFlagsEnumerates values returned by the Android.App.BreadCrumbClickFlags.None, and Android.App.FragmentBreadCrumbs.BreadCrumbClickEventArgs.Flags members and taken as a parameter of the Android.App.FragmentBreadCrumbs.BreadCrumbClickEventArgs..ctor, and Android.App.FragmentBreadCrumbs.IOnBreadCrumbClickListener.OnBreadCrumbClick members.
DatePickerDialogA simple dialog containing an Android.Widget.DatePicker.
DatePickerDialog+DateSetEventArgsDocumentation for this section has not yet been entered.
DatePickerDialog+IOnDateSetListenerThe callback used to indicate the user is done filling in the date.
DefaultKeyEnumerates values returned by several methods of Android.App.DefaultKey and taken as a parameter of the Android.App.Activity.SetDefaultKeyMode member.
DialogBase class for Dialogs.
Dialog+InterfaceConstsDocumentation for this section has not yet been entered.
DialogFragmentA fragment that displays a dialog window, floating on top of its activity's window.
DialogFragmentStyleEnumerates values returned by several types and taken as a parameter of the Android.App.DialogFragment.SetStyle member.
DisableCarModeFlagsEnumerates values returned by the Android.App.DisableCarModeFlags.GoHome, Android.App.DisableCarModeFlags.None, and Android.App.UiModeManager.DisableCarModeGoHome members and taken as a parameter of the Android.App.UiModeManager.DisableCarMode member.
DownloadErrorEnumerates values returned by several types.
DownloadManagerThe download manager is a system service that handles long-running HTTP downloads.
DownloadManager+QueryThis class may be used to filter download manager queries.
DownloadManager+RequestThis class contains all the information necessary to request a new download.
DownloadNetworkEnumerates values returned by several types and taken as a parameter of the Android.App.DownloadManager.Request.SetAllowedNetworkTypes member.
DownloadPausedReasonEnumerates values returned by several types.
DownloadStatusEnumerates values returned by several types and taken as a parameter of the Android.App.DownloadManager.Query.SetFilterByStatus member.
DownloadVisibilityEnumerates values returned by several types and taken as a parameter of the Android.App.DownloadManager.Request.SetNotificationVisibility member.
EnableCarModeFlagsEnumerates values returned by several types and taken as a parameter of the Android.App.UiModeManager.EnableCarMode member.
ExpandableListActivityAn 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.
FragmentA Fragment is a piece of an application's user interface or behavior that can be placed in an Android.App.Activity.
Fragment+InstantiationExceptionThrown by Android.App.Fragment.Instantiate(Android.Content.Context, System.String, System.String) when there is an instantiation failure.
Fragment+InterfaceConstsDocumentation for this section has not yet been entered.
Fragment+SavedStateState information that has been retrieved from a fragment instance through Android.App.FragmentManager.SaveFragmentInstanceState(Android.App.Fragment).
Fragment+SavedState+InterfaceConstsDocumentation for this section has not yet been entered.
FragmentBreadCrumbsHelper class for showing "bread crumbs" representing the fragment stack in an activity.
FragmentBreadCrumbs+BreadCrumbClickEventArgsProvides data for the Android.App.FragmentBreadCrumbs.BreadCrumbClick event.
FragmentBreadCrumbs+IOnBreadCrumbClickListenerInterface to intercept clicks on the bread crumbs.
FragmentManagerInterface for interacting with Android.App.Fragment objects inside of an Android.App.Activity

Developer Guides

While the FragmentManager API was introduced in NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#HONEYCOMB, a version of the API at is also available for use on older platforms through NoType:android/support/v4/app/FragmentActivity;Href=../../../reference/android/support/v4/app/FragmentActivity.html.
FragmentManager+IBackStackEntryRepresentation of an entry on the fragment back stack, as created with Android.App.FragmentTransaction.AddToBackStack(string).
FragmentManager+IOnBackStackChangedListenerInterface to watch for changes to the back stack.
FragmentTransactionAPI for performing a set of Fragment operations.
FragmentTransitEnumerates values returned by several methods of Android.App.FragmentTransit and taken as a parameter of the Android.App.Fragment.OnCreateAnimator, and Android.App.FragmentTransaction.SetTransition members.
ImportanceEnumerates values returned by several types.
ImportanceReasonEnumerates values returned by several types.
InstrumentationBase class for implementing application instrumentation code.
Instrumentation+ActivityMonitorInformation about a particular kind of Intent that is being monitored.
Instrumentation+ActivityResultDescription of a Activity execution result to return to the original activity.
InstrumentationAttributeDocumentation for this section has not yet been entered.
IntentFilterAttribute Generates the //intent-filter element within AndroidManifest.xml.
IntentServiceDocumentation for this section has not yet been entered.
KeyguardManagerClass that can be used to lock and unlock the keyboard.
KeyguardManager+IOnKeyguardExitResultCallback passed to Android.App.KeyguardManager.ExitKeyguardSecurely(Android.App.KeyguardManager.IOnKeyguardExitResult) to notify caller of result.
KeyguardManager+KeyguardLockDocumentation for this section has not yet been entered.
LauncherActivityDisplays a list of all activities which can be performed for a given intent.
LauncherActivity+IconResizerUtility class to resize icons to match default icon size.
LauncherActivity+ListItemAn item in the list
ListActivityAn 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.
ListFragmentA 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.
LoaderManagerInterface associated with an Android.App.Activity or Android.App.Fragment for managing one or more Android.Content.Loader instances associated with it.
LoaderManager+ILoaderCallbacksCallback interface for a client to interact with the manager.
LocalActivityManager
MediaRouteActionProviderThe media route action provider displays a Android.App.MediaRouteButton in the application's Android.App.ActionBar to allow the user to select routes and to control the currently selected route.
MediaRouteButton [Android Documentation]
MetaDataAttribute Generates the //meta-data element within AndroidManifest.xml.
MoveTaskFlagsEnumerates values returned by the Android.App.MoveTaskFlags.NoUserAction, and Android.App.MoveTaskFlags.WithHome members and taken as a parameter of the Android.App.ActivityManager.MoveTaskToFront, and Android.App.ActivityManager.MoveTaskToFront members.
NativeActivityConvenience for implementing an activity that will be implemented purely in native code.
NotificationA class that represents how a persistent notification is to be presented to the user using the Android.App.NotificationManager.
Notification+ActionDocumentation for this section has not yet been entered.
Notification+Action+BuilderDocumentation for this section has not yet been entered.
Notification+Action+IExtenderDocumentation for this section has not yet been entered.
Notification+Action+InterfaceConstsDocumentation for this section has not yet been entered.
Notification+Action+WearableExtenderDocumentation for this section has not yet been entered.
Notification+BigPictureStyleHelper class for generating large-format notifications that include a large image attachment.
Notification+BigTextStyleHelper class for generating large-format notifications that include a lot of text.
Notification+BuilderBuilder class for Android.App.Notification objects.
Notification+IExtenderDocumentation for this section has not yet been entered.
Notification+InboxStyleHelper class for generating large-format notifications that include a list of (up to 5) strings.
Notification+InterfaceConstsDocumentation for this section has not yet been entered.
Notification+MediaStyleNotification style for media playback notifications.
Notification+StyleAn object that can apply a rich notification style to a Android.App.Notification.Builder object.
Notification+WearableExtenderDocumentation for this section has not yet been entered.
NotificationDefaultsEnumerates values returned by several types and taken as a parameter of the Android.App.Notification.Builder.SetDefaults member.
NotificationFlagsEnumerates values returned by several types.
NotificationManagerClass to notify the user of events that happen.
NotificationPriorityEnumerates values returned by several types.
NotificationVisibilityEnumerates values returned by several types and taken as a parameter of the Android.App.Notification.Builder.SetVisibility member.
PendingIntentA description of an Intent and target action to perform with it.
PendingIntent+CanceledExceptionException thrown when trying to send through a PendingIntent that has been canceled or is otherwise no longer able to execute the request.
PendingIntent+InterfaceConstsDocumentation for this section has not yet been entered.
PendingIntent+IOnFinishedCallback interface for discovering when a send operation has completed.
PendingIntentFlagsEnumerates values returned by several methods of Android.App.PendingIntentFlags and taken as a parameter of several types.
PermissionAttributeDocumentation for this section has not yet been entered.
PermissionGroupAttributeDocumentation for this section has not yet been entered.
PermissionTreeAttributeDocumentation for this section has not yet been entered.
PopBackStackFlagsEnumerates values returned by the Android.App.FragmentManager.PopBackStackInclusive, Android.App.PopBackStackFlags.Inclusive, and Android.App.PopBackStackFlags.None members and taken as a parameter of several methods of Android.App.FragmentManager.
PresentationBase class for presentations.
ProcessErrorEnumerates values returned by several types.
ProgressDialog
ProgressDialogStyleEnumerates values returned by the Android.App.ProgressDialogStyle.Horizontal, and Android.App.ProgressDialogStyle.Spinner members and taken as a parameter of the Android.App.ProgressDialog.SetProgressStyle member.
RecentTaskFlagsEnumerates values returned by the Android.App.RecentTaskFlags.IgnoreUnavailable, and Android.App.RecentTaskFlags.WithExcluded members and taken as a parameter of the Android.App.ActivityManager.GetRecentTasks member.
RemoteInputA 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.
RemoteInput+BuilderDocumentation for this section has not yet been entered.
RemoteInput+InterfaceConstsDocumentation for this section has not yet been entered.
ResultEnumerates values returned by several types and taken as a parameter of several types.
SearchableInfoSearchability meta-data for an activity.
SearchableInfo+InterfaceConstsDocumentation for this section has not yet been entered.
SearchManagerThis class provides access to the system search services.
SearchManager+IOnCancelListenerSee Android.App.SearchManager.SetOnCancelListener(Android.App.SearchManager.IOnCancelListener) for configuring your activity to monitor search UI state.
SearchManager+IOnDismissListenerSee Android.App.SearchManager.SetOnDismissListener(Android.App.SearchManager.IOnDismissListener) for configuring your activity to monitor search UI state.
ServiceA 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+InterfaceConstsDocumentation for this section has not yet been entered.
ServiceAttribute Generates a /manifest/application/service element within AndroidManifest.xml.
ServiceInfoFlagsEnumerates values returned by several types.
SharedElementCallbackListener provided in Android.App.Activity.SetEnterSharedElementCallback(Android.App.SharedElementCallback) and Android.App.Activity.SetExitSharedElementCallback(Android.App.SharedElementCallback) as well as Android.App.Fragment.SetEnterSharedElementCallback(Android.App.SharedElementCallback) and Android.App.Fragment.SetExitSharedElementCallback(Android.App.SharedElementCallback) to monitor the Shared element transitions.
StartCommandFlagsEnumerates values returned by the Android.App.StartCommandFlags.Redelivery, and Android.App.StartCommandFlags.Retry members and taken as a parameter of the Android.App.Service.OnStartCommand, and Android.Locations.SettingInjectorService.OnStartCommand members.
StartCommandResultEnumerates values returned by several types.
SupportsGLTextureAttributeDocumentation for this section has not yet been entered.
TabActivity
TaskStackBuilderUtility class for constructing synthetic back stacks for cross-task navigation on Android 3.0 and newer.
TimePickerDialogA dialog that prompts the user for the time of day using a Android.Widget.TimePicker.
TimePickerDialog+IOnTimeSetListenerThe callback interface used to indicate the user is done filling in the time (they clicked on the 'Set' button).
TimePickerDialog+TimeSetEventArgsDocumentation for this section has not yet been entered.
UiAutomationClass for interacting with the device's UI by simulation user actions and introspection of the screen content.
UiAutomation+AccessibilityEventEventArgsProvides data for the Android.App.UiAutomation.AccessibilityEvent event.
UiAutomation+IAccessibilityEventFilterListener for filtering accessibility events.
UiAutomation+IOnAccessibilityEventListenerListener for observing the Android.Views.Accessibility.AccessibilityEvent stream.
UiAutomationRotationEnumerates values returned by several types and taken as a parameter of the Android.App.UiAutomation.SetRotation member.
UiModeManagerThis class provides access to the system uimode services.
UiNightModeEnumerates values returned by several types.
UsesFeatureAttributeDocumentation for this section has not yet been entered.
UsesLibraryAttributeDocumentation for this section has not yet been entered.
UsesPermissionAttributeDocumentation for this section has not yet been entered.
WallpaperInfoThis class is used to specify meta information of a wallpaper service.
WallpaperInfo+InterfaceConstsDocumentation for this section has not yet been entered.
WallpaperManagerProvides access to the system wallpaper.
WearableSizePresetEnumerates values returned by several types and taken as a parameter of the Android.App.Notification.WearableExtender.SetCustomSizePreset member.