Android.App Namespace
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: Activity and Service. The other two components are from the Android.Content package: BroadcastReceiver and ContentProvider.
An 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 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 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
| Type | Reason |
|---|---|
| ActionBar | A primary toolbar within the activity that may display the activity title, application-level navigation affordances, and other interactive items. |
| ActionBar+IOnMenuVisibilityListener | Listener for receiving events when action bar menus are shown or hidden. |
| IOnNavigationListener | Listener interface for ActionBar navigation events. |
| ITabListener | Callback interface invoked when a tab is focused, unfocused, added, or removed. |
| LayoutParams | Per-child layout information associated with action bar custom views. |
| MenuVisibilityEventArgs | Provides data for the ActionBar.MenuVisibility event. |
| NavigationEventArgs | |
| Tab | A tab in the action bar. |
| TabEventArgs | Provides data for the ActionBar+Tab.TabReselected, ActionBar+Tab.TabSelected, and ActionBar+Tab.TabUnselected events. |
| TabReselectedEventArgs | |
| TabSelectedEventArgs | |
| TabUnselectedEventArgs | |
| ActionBarDisplayOptions | Enumerates values returned by several types and taken as a parameter of the ActionBar.SetDisplayOptions, and ActionBar.SetDisplayOptions members. |
| ActionBarNavigationMode | Enumerates values returned by several types. |
| Activity | An activity is a single, focused thing that the user can do. |
| InterfaceConsts | |
| ActivityAttribute | Generates a /manifest/application/activity element within AndroidManifest.xml. |
| ActivityGroup | A screen that contains and runs multiple embedded activities. |
| ActivityManager | Interact with the overall activities running in the system. |
| AppTask | |
| MemoryInfo | Information you can retrieve about the available memory through ActivityManager.GetMemoryInfo(MemoryInfo). |
| InterfaceConsts | |
| ProcessErrorStateInfo | Information you can retrieve about any processes that are in an error condition. |
| InterfaceConsts | |
| RecentTaskInfo | Information you can retrieve about tasks that the user has most recently started or visited. |
| InterfaceConsts | |
| RunningAppProcessInfo | Information you can retrieve about a running process. |
| InterfaceConsts | |
| RunningServiceInfo | Information you can retrieve about a particular Service that is currently running in the system. |
| InterfaceConsts | |
| RunningTaskInfo | Information you can retrieve about a particular task that is currently "running" in the system. |
| InterfaceConsts | |
| TaskDescription | |
| InterfaceConsts | |
| 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. |
| AlarmClockInfo | |
| InterfaceConsts | |
| AlarmType | Enumerates values returned by several methods of AlarmType and taken as a parameter of several methods of AlarmManager. |
| AlertDialog | A subclass of Dialog that can display one, two or three buttons. |
| Builder | |
| AliasActivity | Stub activity that launches another activity (and then finishes itself) based on information in its component's manifest meta-data. |
| Application | Base class for those who need to maintain global application state. |
| IActivityLifecycleCallbacks | |
| InterfaceConsts | |
| IOnProvideAssistDataListener | Callback interface for use with Application.RegisterOnProvideAssistDataListener(IOnProvideAssistDataListener) and Application.UnregisterOnProvideAssistDataListener(IOnProvideAssistDataListener). |
| ProvideAssistDataEventArgs | |
| ApplicationAttribute | Generates a /manifest/application element within AndroidManifest.xml. |
| ApplicationErrorReport | Describes an application error. |
| AnrInfo | Describes an application not responding error. |
| BatteryInfo | Describes a battery usage report. |
| CrashInfo | Describes an application crash. |
| InterfaceConsts | |
| RunningServiceInfo | Describes a running service report. |
| ApplicationErrorReportType | Enumerates values returned by several types. |
| AppOpsManager | API for interacting with "application operation" tracking. |
| IOnOpChangedListener | |
| OpChangedEventArgs | |
| AppOpsManagerMode | Enumerates values returned by several types. |
| BreadCrumbClickFlags | Enumerates values returned by the BreadCrumbClickFlags.None, and FragmentBreadCrumbs+BreadCrumbClickEventArgs.Flags members and taken as a parameter of the Android.App.FragmentBreadCrumbs.BreadCrumbClickEventArgs..ctor, and FragmentBreadCrumbs+IOnBreadCrumbClickListener.OnBreadCrumbClick members. |
| DatePickerDialog | A simple dialog containing an DatePicker. |
| DateSetEventArgs | |
| IOnDateSetListener | The callback used to indicate the user is done filling in the date. |
| DefaultKey | Enumerates values returned by several methods of DefaultKey and taken as a parameter of the Activity.SetDefaultKeyMode member. |
| Dialog | Base class for Dialogs. |
| InterfaceConsts | |
| DialogFragment | A fragment that displays a dialog window, floating on top of its activity's window. |
| DialogFragmentStyle | Enumerates values returned by several types and taken as a parameter of the DialogFragment.SetStyle member. |
| DisableCarModeFlags | Enumerates values returned by the DisableCarModeFlags.GoHome, DisableCarModeFlags.None, and UiModeManager.DisableCarModeGoHome members and taken as a parameter of the UiModeManager.DisableCarMode member. |
| DownloadError | Enumerates values returned by several types. |
| DownloadManager | The download manager is a system service that handles long-running HTTP downloads. |
| Query | This class may be used to filter download manager queries. |
| Request | This class contains all the information necessary to request a new download. |
| DownloadNetwork | Enumerates values returned by several types and taken as a parameter of the DownloadManager+Request.SetAllowedNetworkTypes member. |
| DownloadPausedReason | Enumerates values returned by several types. |
| DownloadStatus | Enumerates values returned by several types and taken as a parameter of the DownloadManager+Query.SetFilterByStatus member. |
| DownloadVisibility | Enumerates values returned by several types and taken as a parameter of the DownloadManager+Request.SetNotificationVisibility member. |
| EnableCarModeFlags | Enumerates values returned by several types and taken as a parameter of the UiModeManager.EnableCarMode member. |
| 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. |
| InstantiationException | Thrown by Fragment.Instantiate(Context,String,String) when there is an instantiation failure. |
| InterfaceConsts | |
| SavedState | State information that has been retrieved from a fragment instance through FragmentManager.SaveFragmentInstanceState(Fragment). |
| InterfaceConsts | |
| FragmentBreadCrumbs | Helper class for showing "bread crumbs" representing the fragment stack in an activity. |
| BreadCrumbClickEventArgs | Provides data for the FragmentBreadCrumbs.BreadCrumbClick event. |
| IOnBreadCrumbClickListener | Interface to intercept clicks on the bread crumbs. |
| FragmentManager | Interface for interacting with Fragment objects inside of an
ActivityDeveloper GuidesWhile 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. |
| IBackStackEntry | Representation of an entry on the fragment back stack, as created with FragmentTransaction.AddToBackStack(String). |
| IOnBackStackChangedListener | Interface to watch for changes to the back stack. |
| FragmentTransaction | API for performing a set of Fragment operations. |
| FragmentTransit | Enumerates values returned by several methods of FragmentTransit and taken as a parameter of the Fragment.OnCreateAnimator, and FragmentTransaction.SetTransition members. |
| Importance | Enumerates values returned by several types. |
| ImportanceReason | Enumerates values returned by several types. |
| Instrumentation | Base class for implementing application instrumentation code. |
| ActivityMonitor | Information about a particular kind of Intent that is being monitored. |
| ActivityResult | Description of a Activity execution result to return to the original activity. |
| InstrumentationAttribute | |
| IntentFilterAttribute | Generates the //intent-filter element within AndroidManifest.xml. |
| IntentService | |
| KeyguardManager | Class that can be used to lock and unlock the keyboard. |
| IOnKeyguardExitResult | Callback passed to KeyguardManager.ExitKeyguardSecurely(IOnKeyguardExitResult) to notify caller of result. |
| KeyguardLock | |
| LauncherActivity | Displays a list of all activities which can be performed for a given intent. |
| IconResizer | Utility class to resize icons to match default icon size. |
| ListItem | An item in the list |
| 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 Loader instances associated with it. |
| ILoaderCallbacks | Callback interface for a client to interact with the manager. |
| LocalActivityManager | |
| MediaRouteActionProvider | The media route action provider displays a MediaRouteButton in the application's 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. |
| MoveTaskFlags | Enumerates values returned by the MoveTaskFlags.NoUserAction, and MoveTaskFlags.WithHome members and taken as a parameter of the ActivityManager.MoveTaskToFront, and ActivityManager.MoveTaskToFront members. |
| 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. |
| Action | |
| Builder | |
| IExtender | |
| InterfaceConsts | |
| WearableExtender | |
| BigPictureStyle | Helper class for generating large-format notifications that include a large image attachment. |
| BigTextStyle | Helper class for generating large-format notifications that include a lot of text. |
| Builder | Builder class for Notification objects. |
| IExtender | |
| InboxStyle | Helper class for generating large-format notifications that include a list of (up to 5) strings. |
| InterfaceConsts | |
| MediaStyle | Notification style for media playback notifications. |
| Style | An object that can apply a rich notification style to a Builder object. |
| WearableExtender | |
| NotificationDefaults | Enumerates values returned by several types and taken as a parameter of the Notification+Builder.SetDefaults member. |
| NotificationFlags | Enumerates values returned by several types. |
| NotificationManager | Class to notify the user of events that happen. |
| NotificationPriority | Enumerates values returned by several types. |
| NotificationVisibility | Enumerates values returned by several types and taken as a parameter of the Notification+Builder.SetVisibility member. |
| PendingIntent | A description of an Intent and target action to perform with it. |
| CanceledException | Exception thrown when trying to send through a PendingIntent that has been canceled or is otherwise no longer able to execute the request. |
| InterfaceConsts | |
| IOnFinished | Callback interface for discovering when a send operation has completed. |
| PendingIntentFlags | Enumerates values returned by several methods of PendingIntentFlags and taken as a parameter of several types. |
| PermissionAttribute | |
| PermissionGroupAttribute | |
| PermissionTreeAttribute | |
| PopBackStackFlags | Enumerates values returned by the FragmentManager.PopBackStackInclusive, PopBackStackFlags.Inclusive, and PopBackStackFlags.None members and taken as a parameter of several methods of FragmentManager. |
| Presentation | Base class for presentations. |
| ProcessError | Enumerates values returned by several types. |
| ProgressDialog | |
| ProgressDialogStyle | Enumerates values returned by the ProgressDialogStyle.Horizontal, and ProgressDialogStyle.Spinner members and taken as a parameter of the ProgressDialog.SetProgressStyle member. |
| RecentTaskFlags | Enumerates values returned by the RecentTaskFlags.IgnoreUnavailable, and RecentTaskFlags.WithExcluded members and taken as a parameter of the ActivityManager.GetRecentTasks member. |
| RemoteInput | A RemoteInput object specifies input to be collected from a user to be passed along with an intent inside a PendingIntent that is sent. |
| Builder | |
| InterfaceConsts | |
| Result | Enumerates values returned by several types and taken as a parameter of several types. |
| SearchableInfo | Searchability meta-data for an activity. |
| InterfaceConsts | |
| SearchManager | This class provides access to the system search services. |
| IOnCancelListener | See SearchManager.SetOnCancelListener(IOnCancelListener) for configuring your activity to monitor search UI state. |
| IOnDismissListener | See SearchManager.SetOnDismissListener(IOnDismissListener) for configuring your activity to monitor search UI state. |
| 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. |
| InterfaceConsts | |
| ServiceAttribute | Generates a /manifest/application/service element within AndroidManifest.xml. |
| ServiceInfoFlags | Enumerates values returned by several types. |
| 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. |
| StartCommandFlags | Enumerates values returned by the StartCommandFlags.Redelivery, and StartCommandFlags.Retry members and taken as a parameter of the Service.OnStartCommand, and SettingInjectorService.OnStartCommand members. |
| StartCommandResult | Enumerates values returned by several types. |
| SupportsGLTextureAttribute | |
| TabActivity | |
| TaskStackBuilder | Utility class for constructing synthetic back stacks for cross-task navigation on Android 3.0 and newer. |
| TimePickerDialog | A dialog that prompts the user for the time of day using a TimePicker. |
| IOnTimeSetListener | The callback interface used to indicate the user is done filling in the time (they clicked on the 'Set' button). |
| TimeSetEventArgs | |
| UiAutomation | Class for interacting with the device's UI by simulation user actions and introspection of the screen content. |
| AccessibilityEventEventArgs | Provides data for the UiAutomation.AccessibilityEvent event. |
| IAccessibilityEventFilter | Listener for filtering accessibility events. |
| IOnAccessibilityEventListener | Listener for observing the AccessibilityEvent stream. |
| UiAutomationRotation | Enumerates values returned by several types and taken as a parameter of the UiAutomation.SetRotation member. |
| UiModeManager | This class provides access to the system uimode services. |
| UiNightMode | Enumerates values returned by several types. |
| UsesFeatureAttribute | |
| UsesLibraryAttribute | |
| UsesPermissionAttribute | |
| WallpaperInfo | This class is used to specify meta information of a wallpaper service. |
| InterfaceConsts | |
| WallpaperManager | Provides access to the system wallpaper. |
| WearableSizePreset | Enumerates values returned by several types and taken as a parameter of the Notification+WearableExtender.SetCustomSizePreset member. |

