Activity Activity Class

Definition

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

[Android.Runtime.Register("android/app/Activity", ApiSince=1, DoNotGenerateAcw=true)]
public class Activity : Android.Views.ContextThemeWrapper, Android.Content.IComponentCallbacks2, Android.Views.KeyEvent.ICallback, Android.Views.LayoutInflater.IFactory2, Android.Views.View.IOnCreateContextMenuListener, Android.Views.Window.ICallback, IDisposable
type Activity = class
    inherit ContextThemeWrapper
    interface IComponentCallbacks
    interface IJavaObject
    interface IDisposable
    interface IComponentCallbacks2
    interface KeyEvent.ICallback
    interface LayoutInflater.IFactory
    interface LayoutInflater.IFactory2
    interface View.IOnCreateContextMenuListener
    interface Window.ICallback
Inheritance
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Constructors

Activity() Activity()
Activity(IntPtr, JniHandleOwnership) Activity(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

ActionBar ActionBar

Retrieve a reference to this activity's ActionBar.

Application Application

Return the application that owns this activity.

ApplicationContext ApplicationContext

Return the context of the single, global Application object of the current process.

(Inherited from ContextWrapper)
ApplicationInfo ApplicationInfo

Return the full application info for this context's package.

(Inherited from ContextWrapper)
Assets Assets

Return an AssetManager instance for your application's package.

(Inherited from ContextWrapper)
BaseContext BaseContext Inherited from ContextWrapper
CacheDir CacheDir

Returns the absolute path to the application specific cache directory on the filesystem.

(Inherited from ContextWrapper)
CallingActivity CallingActivity

Return the name of the activity that invoked this activity.

CallingPackage CallingPackage

Return the name of the package that invoked this activity.

ChangingConfigurations ChangingConfigurations
Class Class

Returns the unique instance of Class that represents this object's class.

(Inherited from Object)
ClassLoader ClassLoader

Return a class loader you can use to retrieve classes in this package.

(Inherited from ContextWrapper)
CodeCacheDir CodeCacheDir

Returns the absolute path to the application specific cache directory on the filesystem designed for storing cached code.

(Inherited from ContextWrapper)
ComponentName ComponentName

Returns complete component name of this activity.

ContentResolver ContentResolver

Return a ContentResolver instance for your application's package.

(Inherited from ContextWrapper)
ContentScene ContentScene

Retrieve the Scene representing this window's current content.

ContentTransitionManager ContentTransitionManager

Retrieve the TransitionManager responsible for default transitions in this window.

CurrentFocus CurrentFocus

Calls CurrentFocus on the Window of this Activity to return the currently focused view.

DataDir DataDir Inherited from ContextWrapper
ExternalCacheDir ExternalCacheDir

Returns the absolute path to the directory on the primary external filesystem (that is somewhere on ExternalStorageDirectory where the application can place cache files it owns.

(Inherited from ContextWrapper)
FilesDir FilesDir

Returns the absolute path to the directory on the filesystem where files created with OpenFileOutput(String, FileCreationMode) are stored.

(Inherited from ContextWrapper)
FocusedStateSet FocusedStateSet
FragmentManager FragmentManager

Return the FragmentManager for interacting with fragments associated with this activity.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasWindowFocus HasWindowFocus

Returns true if this activity's main window currently has window focus.

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
Immersive Immersive

Bit indicating that this activity is "immersive" and should not be interrupted by notifications if possible.

InstanceCount InstanceCount
Intent Intent

Return the intent that started this activity.

IsActivityTransitionRunning IsActivityTransitionRunning
IsChangingConfigurations IsChangingConfigurations

Check to see whether this activity is in the process of being destroyed in order to be recreated with a new configuration.

IsChild IsChild

Is this activity embedded inside of another activity?

IsDestroyed IsDestroyed

Returns true if the final OnDestroy() call has been made on the Activity, so this instance is now dead.

IsDeviceProtectedStorage IsDeviceProtectedStorage Inherited from ContextWrapper
IsFinishing IsFinishing

Check to see whether this activity is in the process of finishing, either because you called Finish() on it or someone else has requested that it finished.

IsInMultiWindowMode IsInMultiWindowMode
IsInPictureInPictureMode IsInPictureInPictureMode
IsLocalVoiceInteractionSupported IsLocalVoiceInteractionSupported
IsRestricted IsRestricted

Indicates whether this Context is restricted.

(Inherited from Context)
IsTaskRoot IsTaskRoot

Return whether this activity is the root of a task.

IsVoiceInteraction IsVoiceInteraction
IsVoiceInteractionRoot IsVoiceInteractionRoot
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
LastNonConfigurationInstance LastNonConfigurationInstance

Retrieve the non-configuration instance data that was previously returned by OnRetainNonConfigurationInstance().

LayoutInflater LayoutInflater

Convenience for calling LayoutInflater.

LoaderManager LoaderManager

Return the LoaderManager for this activity, creating it if needed.

LocalClassName LocalClassName

Returns class name for this activity with the package prefix removed.

MainLooper MainLooper

Return the Looper for the main thread of the current process.

(Inherited from ContextWrapper)
MaxNumPictureInPictureActions MaxNumPictureInPictureActions
MediaController MediaController

Gets the controller which should be receiving media key and volume events while this activity is in the foreground.

MenuInflater MenuInflater

Returns a MenuInflater with this context.

NoBackupFilesDir NoBackupFilesDir

Returns the absolute path to the directory on the filesystem similar to FilesDir.

(Inherited from ContextWrapper)
ObbDir ObbDir

Return the primary external storage directory where this application's OBB files (if there are any) can be found.

(Inherited from ContextWrapper)
PackageCodePath PackageCodePath

Return the full path to this context's primary Android package.

(Inherited from ContextWrapper)
PackageManager PackageManager

Return PackageManager instance to find global package information.

(Inherited from ContextWrapper)
PackageName PackageName

Return the name of this application's package.

(Inherited from ContextWrapper)
PackageResourcePath PackageResourcePath

Return the full path to this context's primary Android package.

(Inherited from ContextWrapper)
Parent Parent

Return the parent activity if this view is an embedded child.

ParentActivityIntent ParentActivityIntent

Obtain an Intent that will launch an explicit target activity specified by this activity's logical parent.

PeerReference PeerReference Inherited from Object
Referrer Referrer
RequestedOrientation RequestedOrientation

Return the current requested orientation of the activity.

Resources Resources

Return a Resources instance for your application's package.

(Inherited from ContextWrapper)
SearchEvent SearchEvent
TaskId TaskId

Return the identifier of the task this activity is in.

Theme Theme

Return the Theme object associated with this Context.

(Inherited from ContextWrapper)
ThresholdClass ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Title Title
TitleColor TitleColor
TitleFormatted TitleFormatted
VoiceInteractor VoiceInteractor
VolumeControlStream VolumeControlStream

Gets the suggested audio stream whose volume should be changed by the hardware volume controls.

Wallpaper Wallpaper Inherited from ContextWrapper
WallpaperDesiredMinimumHeight WallpaperDesiredMinimumHeight Inherited from ContextWrapper
WallpaperDesiredMinimumWidth WallpaperDesiredMinimumWidth Inherited from ContextWrapper
Window Window

Retrieve the current Window for the activity.

WindowManager WindowManager

Retrieve the window manager for showing custom windows.

Methods

AddContentView(View, ViewGroup+LayoutParams) AddContentView(View, ViewGroup+LayoutParams)

Add an additional content view to the activity.

ApplyOverrideConfiguration(Configuration) ApplyOverrideConfiguration(Configuration)

Call to set an "override configuration" on this context -- this is a configuration that replies one or more values of the standard configuration that is applied to the context.

(Inherited from ContextThemeWrapper)
AttachBaseContext(Context) AttachBaseContext(Context)

Set the base context for this ContextWrapper.

(Inherited from ContextWrapper)
BindService(Intent, IServiceConnection, Bind) BindService(Intent, IServiceConnection, Bind)

Connect to an application service, creating it if needed.

(Inherited from ContextWrapper)
CheckCallingOrSelfPermission(String) CheckCallingOrSelfPermission(String)

Determine whether the calling process of an IPC or you have been granted a particular permission.

(Inherited from ContextWrapper)
CheckCallingOrSelfUriPermission(Uri, ActivityFlags) CheckCallingOrSelfUriPermission(Uri, ActivityFlags)

Determine whether the calling process of an IPC or you has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckCallingPermission(String) CheckCallingPermission(String)

Determine whether the calling process of an IPC you are handling has been granted a particular permission.

(Inherited from ContextWrapper)
CheckCallingUriPermission(Uri, ActivityFlags) CheckCallingUriPermission(Uri, ActivityFlags)

Determine whether the calling process and user ID has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckPermission(String, Int32, Int32) CheckPermission(String, Int32, Int32)

Determine whether the given permission is allowed for a particular process and user ID running in the system.

(Inherited from ContextWrapper)
CheckSelfPermission(String) CheckSelfPermission(String) Inherited from ContextWrapper
CheckUriPermission(Uri, Int32, Int32, ActivityFlags) CheckUriPermission(Uri, Int32, Int32, ActivityFlags)

Determine whether a particular process and user ID has been granted permission to access a specific URI.

(Inherited from ContextWrapper)
CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags) CheckUriPermission(Uri, String, String, Int32, Int32, ActivityFlags)

Check both a Uri and normal permission.

(Inherited from ContextWrapper)
ClearWallpaper() ClearWallpaper() Inherited from ContextWrapper
Clone() Clone()

Creates and returns a copy of this Object.

(Inherited from Object)
CloseContextMenu() CloseContextMenu()

Programmatically closes the most recently opened context menu, if showing.

CloseOptionsMenu() CloseOptionsMenu()

Progammatically closes the options menu.

CreateConfigurationContext(Configuration) CreateConfigurationContext(Configuration)

Return a new Context object for the current Context but whose resources are adjusted to match the given Configuration.

(Inherited from ContextWrapper)
CreateContextForSplit(String) CreateContextForSplit(String) Inherited from ContextWrapper
CreateDeviceProtectedStorageContext() CreateDeviceProtectedStorageContext() Inherited from ContextWrapper
CreateDisplayContext(Display) CreateDisplayContext(Display)

Return a new Context object for the current Context but whose resources are adjusted to match the metrics of the given Display.

(Inherited from ContextWrapper)
CreatePackageContext(String, PackageContextFlags) CreatePackageContext(String, PackageContextFlags)

Return a new Context object for the given application name.

(Inherited from ContextWrapper)
CreatePendingResult(Int32, Intent, PendingIntentFlags) CreatePendingResult(Int32, Intent, PendingIntentFlags)
DatabaseList() DatabaseList()

Returns an array of strings naming the private databases associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteDatabase(String) DeleteDatabase(String)

Delete an existing private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteFile(String) DeleteFile(String)

Delete the given private file associated with this Context's application package.

(Inherited from ContextWrapper)
DeleteSharedPreferences(String) DeleteSharedPreferences(String) Inherited from ContextWrapper
DismissDialog(Int32) DismissDialog(Int32)

Dismiss a dialog that was previously shown via ShowDialog(Int32).

DismissKeyboardShortcutsHelper() DismissKeyboardShortcutsHelper()
DispatchGenericMotionEvent(MotionEvent) DispatchGenericMotionEvent(MotionEvent)

Called to process generic motion events.

DispatchKeyEvent(KeyEvent) DispatchKeyEvent(KeyEvent)

Called to process key events.

DispatchKeyShortcutEvent(KeyEvent) DispatchKeyShortcutEvent(KeyEvent)

Called to process a key shortcut event.

DispatchPopulateAccessibilityEvent(AccessibilityEvent) DispatchPopulateAccessibilityEvent(AccessibilityEvent)

Called to process population of AccessibilityEvents.

DispatchTouchEvent(MotionEvent) DispatchTouchEvent(MotionEvent)

Called to process touch screen events.

DispatchTrackballEvent(MotionEvent) DispatchTrackballEvent(MotionEvent)

Called to process trackball events.

Dispose() Dispose() Inherited from Object
Dispose(Boolean) Dispose(Boolean) Inherited from Object
Dump(String, FileDescriptor, PrintWriter, String[]) Dump(String, FileDescriptor, PrintWriter, String[])

Print the Activity's state into the given stream.

EnforceCallingOrSelfPermission(String, String) EnforceCallingOrSelfPermission(String, String)

If neither you nor the calling process of an IPC you are handling has been granted a particular permission, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String) EnforceCallingOrSelfUriPermission(Uri, ActivityFlags, String)

If the calling process of an IPC or you has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforceCallingPermission(String, String) EnforceCallingPermission(String, String)

If the calling process of an IPC you are handling has not been granted a particular permission, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceCallingUriPermission(Uri, ActivityFlags, String) EnforceCallingUriPermission(Uri, ActivityFlags, String)

If the calling process and user ID has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforcePermission(String, Int32, Int32, String) EnforcePermission(String, Int32, Int32, String)

If the given permission is not allowed for a particular process and user ID running in the system, throw a SecurityException.

(Inherited from ContextWrapper)
EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String) EnforceUriPermission(Uri, Int32, Int32, ActivityFlags, String)

If a particular process and user ID has not been granted permission to access a specific URI, throw SecurityException.

(Inherited from ContextWrapper)
EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String) EnforceUriPermission(Uri, String, String, Int32, Int32, ActivityFlags, String)

Enforce both a Uri and normal permission.

(Inherited from ContextWrapper)
EnterPictureInPictureMode() EnterPictureInPictureMode()
EnterPictureInPictureMode(PictureInPictureParams) EnterPictureInPictureMode(PictureInPictureParams)
Equals(Object) Equals(Object)

Compares this instance with the specified object and indicates if they are equal.

(Inherited from Object)
FileList() FileList()

Returns an array of strings naming the private files associated with this Context's application package.

(Inherited from ContextWrapper)
FindViewById(Int32) FindViewById(Int32)

Finds a view that was identified by the id attribute from the XML that was processed in OnCreate(Bundle).

FindViewById<T>(Int32) FindViewById<T>(Int32)

Finds a view that was identified by the id attribute from the XML layout resource.

Finish() Finish()

Call this when your activity is done and should be closed.

FinishActivity(Int32) FinishActivity(Int32)

Force finish another activity that you had previously started with StartActivityForResult(Intent, Int32).

FinishActivityFromChild(Activity, Int32) FinishActivityFromChild(Activity, Int32)

This is called when a child activity of this one calls its finishActivity().

FinishAffinity() FinishAffinity()

Finish this activity as well as all activities immediately below it in the current task that have the same affinity.

FinishAfterTransition() FinishAfterTransition()

Reverses the Activity Scene entry Transition and triggers the calling Activity to reverse its exit Transition.

FinishAndRemoveTask() FinishAndRemoveTask()

Call this when your activity is done and should be closed and the task should be completely removed as a part of finishing the Activity.

FinishFromChild(Activity) FinishFromChild(Activity)

This is called when a child activity of this one calls its Finish() method.

GetColor(Int32) GetColor(Int32) Inherited from Context
GetColorStateList(Int32) GetColorStateList(Int32) Inherited from Context
GetDatabasePath(String) GetDatabasePath(String) Inherited from ContextWrapper
GetDir(String, FileCreationMode) GetDir(String, FileCreationMode)

Retrieve, creating if needed, a new directory in which the application can place its own custom data files.

(Inherited from ContextWrapper)
GetDrawable(Int32) GetDrawable(Int32)

Returns a drawable object associated with a particular resource ID and styled for the current theme.

(Inherited from Context)
GetExternalCacheDirs() GetExternalCacheDirs()

Returns absolute paths to application-specific directories on all external storage devices where the application can place cache files it owns.

(Inherited from ContextWrapper)
GetExternalFilesDir(String) GetExternalFilesDir(String)

Returns the absolute path to the directory on the primary external filesystem (that is somewhere on ExternalStorageDirectory) where the application can place persistent files it owns.

(Inherited from ContextWrapper)
GetExternalFilesDirs(String) GetExternalFilesDirs(String)

Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns.

(Inherited from ContextWrapper)
GetExternalMediaDirs() GetExternalMediaDirs()

Returns absolute paths to application-specific directories on all external storage devices where the application can place media files.

(Inherited from ContextWrapper)
GetFileStreamPath(String) GetFileStreamPath(String)

Returns the absolute path on the filesystem where a file created with OpenFileOutput(String, FileCreationMode) is stored.

(Inherited from ContextWrapper)
GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetObbDirs() GetObbDirs()

Returns absolute paths to application-specific directories on all external storage devices where the application's OBB files (if there are any) can be found.

(Inherited from ContextWrapper)
GetPreferences(FileCreationMode) GetPreferences(FileCreationMode)

Retrieve a ISharedPreferences object for accessing preferences that are private to this activity.

GetSharedPreferences(String, FileCreationMode) GetSharedPreferences(String, FileCreationMode)

Retrieve and hold the contents of the preferences file 'name', returning a SharedPreferences through which you can retrieve and modify its values.

(Inherited from ContextWrapper)
GetString(Int32) GetString(Int32)

Returns a localized string from the application's package's default string table.

(Inherited from Context)
GetString(Int32, Object[]) GetString(Int32, Object[]) Inherited from Context
GetSystemService(Class) GetSystemService(Class) Inherited from Context
GetSystemService(String) GetSystemService(String)

Return the handle to a system-level service by name.

(Inherited from ContextWrapper)
GetSystemServiceName(Class) GetSystemServiceName(Class) Inherited from ContextWrapper
GetText(Int32) GetText(Int32) Inherited from Context
GetTextFormatted(Int32) GetTextFormatted(Int32)

Return a localized, styled CharSequence from the application's package's default string table.

(Inherited from Context)
GrantUriPermission(String, Uri, ActivityFlags) GrantUriPermission(String, Uri, ActivityFlags)

Grant permission to access a specific Uri to another package, regardless of whether that package has general permission to access the Uri's content provider.

(Inherited from ContextWrapper)
InvalidateOptionsMenu() InvalidateOptionsMenu()

Declare that the options menu has changed, so should be recreated.

JavaFinalize() JavaFinalize()

Invoked when the garbage collector has detected that this instance is no longer reachable.

(Inherited from Object)
ManagedQuery(Uri, String[], String, String[], String) ManagedQuery(Uri, String[], String, String[], String)
MoveDatabaseFrom(Context, String) MoveDatabaseFrom(Context, String) Inherited from ContextWrapper
MoveSharedPreferencesFrom(Context, String) MoveSharedPreferencesFrom(Context, String) Inherited from ContextWrapper
MoveTaskToBack(Boolean) MoveTaskToBack(Boolean)

Move the task containing this activity to the back of the activity stack.

NavigateUpTo(Intent) NavigateUpTo(Intent)

Navigate from this activity to the activity specified by upIntent, finishing this activity in the process.

NavigateUpToFromChild(Activity, Intent) NavigateUpToFromChild(Activity, Intent)

This is called when a child activity of this one calls its NavigateUpTo(Intent) method.

Notify() Notify()

Causes a thread which is waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
NotifyAll() NotifyAll()

Causes all threads which are waiting on this object's monitor (by means of calling one of the wait() methods) to be woken up.

(Inherited from Object)
ObtainStyledAttributes(IAttributeSet, Int32[]) ObtainStyledAttributes(IAttributeSet, Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32) ObtainStyledAttributes(IAttributeSet, Int32[], Int32, Int32)

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(Int32, Int32[]) ObtainStyledAttributes(Int32, Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(Int32[]) ObtainStyledAttributes(Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
OnActionModeFinished(ActionMode) OnActionModeFinished(ActionMode)

Notifies the activity that an action mode has finished.

OnActionModeStarted(ActionMode) OnActionModeStarted(ActionMode)

Notifies the Activity that an action mode has been started.

OnActivityReenter(Int32, Intent) OnActivityReenter(Int32, Intent)

Called when an activity you launched with an activity transition exposes this Activity through a returning activity transition, giving you the resultCode and any additional data from it.

OnActivityResult(Int32, Result, Intent) OnActivityResult(Int32, Result, Intent)

Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it.

OnApplyThemeResource(Resources+Theme, Int32, Boolean) OnApplyThemeResource(Resources+Theme, Int32, Boolean)

Called by Android.Views.ContextThemeWrapper.setTheme(int) and Android.Views.ContextThemeWrapper.getTheme() to apply a theme resource to the current Theme object.

(Inherited from ContextThemeWrapper)
OnAttachedToWindow() OnAttachedToWindow()

Called when the main window associated with the activity has been attached to the window manager.

OnAttachFragment(Fragment) OnAttachFragment(Fragment)

Called when a Fragment is being attached to this activity, immediately after the call to its OnAttach(Activity) method and before OnCreate(Bundle).

OnBackPressed() OnBackPressed()

Called when the activity has detected the user's press of the back key.

OnChildTitleChanged(Activity, ICharSequence) OnChildTitleChanged(Activity, ICharSequence)
OnChildTitleChanged(Activity, String) OnChildTitleChanged(Activity, String)
OnConfigurationChanged(Configuration) OnConfigurationChanged(Configuration)

Called by the system when the device configuration changes while your activity is running.

OnContentChanged() OnContentChanged()

This hook is called whenever the content view of the screen changes (due to a call to M:Android.Views.Window.SetContentView(Android.Views.View,.LayoutParams) or AddContentView(View, ViewGroup+LayoutParams)).

OnContextItemSelected(IMenuItem) OnContextItemSelected(IMenuItem)

This hook is called whenever an item in a context menu is selected.

OnContextMenuClosed(IMenu) OnContextMenuClosed(IMenu)

This hook is called whenever the context menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).

OnCreate(Bundle) OnCreate(Bundle)

Called when the activity is starting.

OnCreate(Bundle, PersistableBundle) OnCreate(Bundle, PersistableBundle)

Same as OnCreate(Bundle) but called for those activities created with the attribute PersistableMode set to persistAcrossReboots.

OnCreateContextMenu(IContextMenu, View, IContextMenuContextMenuInfo) OnCreateContextMenu(IContextMenu, View, IContextMenuContextMenuInfo)

Called when a context menu for the view is about to be shown.

OnCreateDescription() OnCreateDescription()
OnCreateDescriptionFormatted() OnCreateDescriptionFormatted()

Generate a new description for this activity.

OnCreateDialog(Int32) OnCreateDialog(Int32)
OnCreateDialog(Int32, Bundle) OnCreateDialog(Int32, Bundle)

Callback for creating dialogs that are managed (saved and restored) for you by the activity.

OnCreateNavigateUpTaskStack(TaskStackBuilder) OnCreateNavigateUpTaskStack(TaskStackBuilder)

Define the synthetic task stack that will be generated during Up navigation from a different task.

OnCreateOptionsMenu(IMenu) OnCreateOptionsMenu(IMenu)

Initialize the contents of the Activity's standard options menu.

OnCreatePanelMenu(Int32, IMenu) OnCreatePanelMenu(Int32, IMenu)

Window Callback onCreatePanelMenu(int,android view Menu)

OnCreatePanelView(Int32) OnCreatePanelView(Int32)

Window Callback onCreatePanelView(int)

OnCreateThumbnail(Bitmap, Canvas) OnCreateThumbnail(Bitmap, Canvas)

Generate a new thumbnail for this activity.

OnCreateView(String, Context, IAttributeSet) OnCreateView(String, Context, IAttributeSet)

Standard implementation of LayoutInflater Factory onCreateView(java lang String,android content Context,android util AttributeSet) used when inflating with the LayoutInflater returned by GetSystemService(String).

OnCreateView(View, String, Context, IAttributeSet) OnCreateView(View, String, Context, IAttributeSet)
OnDestroy() OnDestroy()

Perform any final cleanup before an activity is destroyed.

OnDetachedFromWindow() OnDetachedFromWindow()

Called when the main window associated with the activity has been detached from the window manager.

OnEnterAnimationComplete() OnEnterAnimationComplete()

Activities cannot draw during the period that their windows are animating in.

OnGenericMotionEvent(MotionEvent) OnGenericMotionEvent(MotionEvent)

Called when a generic motion event was not handled by any of the views inside of the activity.

OnKeyDown(Keycode, KeyEvent) OnKeyDown(Keycode, KeyEvent)

Called when a key was pressed down and not handled by any of the views inside of the activity.

OnKeyLongPress(Keycode, KeyEvent) OnKeyLongPress(Keycode, KeyEvent)

Default implementation of OnKeyLongPress(Keycode, KeyEvent): always returns false (doesn't handle the event).

OnKeyMultiple(Keycode, Int32, KeyEvent) OnKeyMultiple(Keycode, Int32, KeyEvent)

Default implementation of OnKeyMultiple(Keycode, Int32, KeyEvent): always returns false (doesn't handle the event).

OnKeyShortcut(Keycode, KeyEvent) OnKeyShortcut(Keycode, KeyEvent)

Called when a key shortcut event is not handled by any of the views in the Activity.

OnKeyUp(Keycode, KeyEvent) OnKeyUp(Keycode, KeyEvent)

Called when a key was released and not handled by any of the views inside of the activity.

OnLocalVoiceInteractionStarted() OnLocalVoiceInteractionStarted()
OnLocalVoiceInteractionStopped() OnLocalVoiceInteractionStopped()
OnLowMemory() OnLowMemory()

This is called when the overall system is running low on memory, and actively running processes should trim their memory usage.

OnMenuItemSelected(Int32, IMenuItem) OnMenuItemSelected(Int32, IMenuItem)

Window Callback onMenuItemSelected(int,android view MenuItem)

OnMenuOpened(Int32, IMenu) OnMenuOpened(Int32, IMenu)

Called when a panel's menu is opened by the user.

OnMultiWindowModeChanged(Boolean) OnMultiWindowModeChanged(Boolean)
OnMultiWindowModeChanged(Boolean, Configuration) OnMultiWindowModeChanged(Boolean, Configuration)
OnNavigateUp() OnNavigateUp()

This method is called whenever the user chooses to navigate Up within your application's activity hierarchy from the action bar.

OnNavigateUpFromChild(Activity) OnNavigateUpFromChild(Activity)

This is called when a child activity of this one attempts to navigate up.

OnNewIntent(Intent) OnNewIntent(Intent)
OnOptionsItemSelected(IMenuItem) OnOptionsItemSelected(IMenuItem)

This hook is called whenever an item in your options menu is selected.

OnOptionsMenuClosed(IMenu) OnOptionsMenuClosed(IMenu)

This hook is called whenever the options menu is being closed (either by the user canceling the menu with the back/menu button, or when an item is selected).

OnPanelClosed(Int32, IMenu) OnPanelClosed(Int32, IMenu)

Window Callback onPanelClosed(int,android view Menu)

OnPause() OnPause()

Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.

OnPictureInPictureModeChanged(Boolean) OnPictureInPictureModeChanged(Boolean)
OnPictureInPictureModeChanged(Boolean, Configuration) OnPictureInPictureModeChanged(Boolean, Configuration)
OnPostCreate(Bundle) OnPostCreate(Bundle)

Called when activity start-up is complete (after OnStart() and OnRestoreInstanceState(Bundle) have been called).

OnPostCreate(Bundle, PersistableBundle) OnPostCreate(Bundle, PersistableBundle)

This is the same as OnPostCreate(Bundle) but is called for activities created with the attribute PersistableMode set to persistAcrossReboots.

OnPostResume() OnPostResume()

Called when activity resume is complete (after OnResume() has been called).

OnPrepareDialog(Int32, Dialog) OnPrepareDialog(Int32, Dialog)
OnPrepareDialog(Int32, Dialog, Bundle) OnPrepareDialog(Int32, Dialog, Bundle)

Provides an opportunity to prepare a managed dialog before it is being shown.

OnPrepareNavigateUpTaskStack(TaskStackBuilder) OnPrepareNavigateUpTaskStack(TaskStackBuilder)

Prepare the synthetic task stack that will be generated during Up navigation from a different task.

OnPrepareOptionsMenu(IMenu) OnPrepareOptionsMenu(IMenu)

Prepare the Screen's standard options menu to be displayed.

OnPreparePanel(Int32, View, IMenu) OnPreparePanel(Int32, View, IMenu)

Window Callback onPreparePanel(int,android view View,android view Menu)

OnProvideAssistContent(AssistContent) OnProvideAssistContent(AssistContent)
OnProvideAssistData(Bundle) OnProvideAssistData(Bundle)

This is called when the user is requesting an assist, to build a full ActionAssist Intent with all of the context of the current application.

OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32) OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32)
OnProvideReferrer() OnProvideReferrer()
OnRequestPermissionsResult(Int32, String[], Permission[]) OnRequestPermissionsResult(Int32, String[], Permission[])
OnRestart() OnRestart()

Called after OnStop() when the current activity is being re-displayed to the user (the user has navigated back to it).

OnRestoreInstanceState(Bundle) OnRestoreInstanceState(Bundle)

This method is called after OnStart() when the activity is being re-initialized from a previously saved state, given here in savedInstanceState.

OnRestoreInstanceState(Bundle, PersistableBundle) OnRestoreInstanceState(Bundle, PersistableBundle)

This is the same as OnRestoreInstanceState(Bundle) but is called for activities created with the attribute PersistableMode set to persistAcrossReboots.

OnResume() OnResume()

Called after OnRestoreInstanceState(Bundle), OnRestart(), or OnPause(), for your activity to start interacting with the user.

OnRetainNonConfigurationInstance() OnRetainNonConfigurationInstance()

Called by the system, as part of destroying an activity due to a configuration change, when it is known that a new instance will immediately be created for the new configuration.

OnSaveInstanceState(Bundle) OnSaveInstanceState(Bundle)

Called to retrieve per-instance state from an activity before being killed so that the state can be restored in OnCreate(Bundle) or OnRestoreInstanceState(Bundle) (the Bundle populated by this method will be passed to both).

OnSaveInstanceState(Bundle, PersistableBundle) OnSaveInstanceState(Bundle, PersistableBundle)

This is the same as OnSaveInstanceState(Bundle) but is called for activities created with the attribute PersistableMode set to persistAcrossReboots.

OnSearchRequested() OnSearchRequested()

Called when the user signals the desire to start a search.

OnSearchRequested(SearchEvent) OnSearchRequested(SearchEvent)
OnStart() OnStart()

Called after OnCreate(Bundle) &mdash; or after OnRestart() when the activity had been stopped, but is now again being displayed to the user.

OnStateNotSaved() OnStateNotSaved()
OnStop() OnStop()

Called when you are no longer visible to the user.

OnTitleChanged(ICharSequence, Color) OnTitleChanged(ICharSequence, Color)
OnTitleChanged(String, Color) OnTitleChanged(String, Color)
OnTouchEvent(MotionEvent) OnTouchEvent(MotionEvent)

Called when a touch screen event was not handled by any of the views under it.

OnTrackballEvent(MotionEvent) OnTrackballEvent(MotionEvent)

Called when the trackball was moved and not handled by any of the views inside of the activity.

OnTrimMemory(TrimMemory) OnTrimMemory(TrimMemory)

Called when the operating system has determined that it is a good time for a process to trim unneeded memory from its process.

OnUserInteraction() OnUserInteraction()

Called whenever a key, touch, or trackball event is dispatched to the activity.

OnUserLeaveHint() OnUserLeaveHint()

Called as part of the activity lifecycle when an activity is about to go into the background as the result of user choice.

OnVisibleBehindCanceled() OnVisibleBehindCanceled()

Called when a translucent activity over this activity is becoming opaque or another activity is being launched.

OnWindowAttributesChanged(WindowManagerLayoutParams) OnWindowAttributesChanged(WindowManagerLayoutParams)

This is called whenever the current window attributes change.

OnWindowFocusChanged(Boolean) OnWindowFocusChanged(Boolean)

Called when the current Window of the activity gains or loses focus.

OnWindowStartingActionMode(ActionMode+ICallback) OnWindowStartingActionMode(ActionMode+ICallback)

Give the Activity a chance to control the UI for an action mode requested by the system.

OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType) OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)
OpenContextMenu(View) OpenContextMenu(View)

Programmatically opens the context menu for a particular view.

OpenFileInput(String) OpenFileInput(String)

Open a private file associated with this Context's application package for reading.

(Inherited from ContextWrapper)
OpenFileOutput(String, FileCreationMode) OpenFileOutput(String, FileCreationMode)

Open a private file associated with this Context's application package for writing.

(Inherited from ContextWrapper)
OpenOptionsMenu() OpenOptionsMenu()

Programmatically opens the options menu.

OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory) OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory)

Open a new private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler) OpenOrCreateDatabase(String, FileCreationMode, SQLiteDatabase+ICursorFactory, IDatabaseErrorHandler)

Open a new private SQLiteDatabase associated with this Context's application package.

(Inherited from ContextWrapper)
OverridePendingTransition(Int32, Int32) OverridePendingTransition(Int32, Int32)

Call immediately after one of the flavors of M:Android.Content.Context.StartActivity or Finish() to specify an explicit transition animation to perform next.

PeekWallpaper() PeekWallpaper() Inherited from ContextWrapper
PostponeEnterTransition() PostponeEnterTransition()
Recreate() Recreate()

Cause this Activity to be recreated with a new instance.

RegisterComponentCallbacks(IComponentCallbacks) RegisterComponentCallbacks(IComponentCallbacks)

Add a new IComponentCallbacks to the base application of the Context, which will be called at the same times as the ComponentCallbacks methods of activities and other components are called.

(Inherited from Context)
RegisterForContextMenu(View) RegisterForContextMenu(View)

Registers a context menu to be shown for the given view (multiple views can show the context menu).

RegisterReceiver(BroadcastReceiver, IntentFilter) RegisterReceiver(BroadcastReceiver, IntentFilter)

Register a BroadcastReceiver to be run in the main activity thread.

(Inherited from ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags) RegisterReceiver(BroadcastReceiver, IntentFilter, ActivityFlags) Inherited from ContextWrapper
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler) RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler)

scheduler

(Inherited from ContextWrapper)
RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags) RegisterReceiver(BroadcastReceiver, IntentFilter, String, Handler, ActivityFlags) Inherited from ContextWrapper
ReleaseInstance() ReleaseInstance()

Ask that the local app instance of this activity be released to free up its memory.

RemoveDialog(Int32) RemoveDialog(Int32)

Removes any internal references to a dialog managed by this Activity.

RemoveStickyBroadcast(Intent) RemoveStickyBroadcast(Intent) Inherited from ContextWrapper
RemoveStickyBroadcastAsUser(Intent, UserHandle) RemoveStickyBroadcastAsUser(Intent, UserHandle) Inherited from ContextWrapper
ReportFullyDrawn() ReportFullyDrawn()

Report to the system that your app is now fully drawn, purely for diagnostic purposes (calling it does not impact the visible behavior of the activity).

RequestDragAndDropPermissions(DragEvent) RequestDragAndDropPermissions(DragEvent)
RequestPermissions(String[], Int32) RequestPermissions(String[], Int32)
RequestShowKeyboardShortcuts() RequestShowKeyboardShortcuts()
RequestVisibleBehind(Boolean) RequestVisibleBehind(Boolean)

Activities that want to remain visible behind a translucent activity above them must call this method anytime between the start of OnResume() and the return from OnPause().

RequestWindowFeature(WindowFeatures) RequestWindowFeature(WindowFeatures)

Enable extended window features.

RevokeUriPermission(String, Uri, ActivityFlags) RevokeUriPermission(String, Uri, ActivityFlags) Inherited from ContextWrapper
RevokeUriPermission(Uri, ActivityFlags) RevokeUriPermission(Uri, ActivityFlags)

M:Android.Content.Context.GrantUriPermission(System.String,Android.Net.Uri,Android.Net.Uri)

(Inherited from ContextWrapper)
RunOnUiThread(Action) RunOnUiThread(Action)
RunOnUiThread(IRunnable) RunOnUiThread(IRunnable)

Runs the specified action on the UI thread.

SendBroadcast(Intent) SendBroadcast(Intent)

Broadcast the given intent to all interested BroadcastReceivers.

(Inherited from ContextWrapper)
SendBroadcast(Intent, String) SendBroadcast(Intent, String)

Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.

(Inherited from ContextWrapper)
SendBroadcastAsUser(Intent, UserHandle) SendBroadcastAsUser(Intent, UserHandle)

Version of SendBroadcast(Intent) that allows you to specify the user the broadcast will be sent to.

(Inherited from ContextWrapper)
SendBroadcastAsUser(Intent, UserHandle, String) SendBroadcastAsUser(Intent, UserHandle, String)

Version of SendBroadcast(Intent, String) that allows you to specify the user the broadcast will be sent to.

(Inherited from ContextWrapper)
SendOrderedBroadcast(Intent, String) SendOrderedBroadcast(Intent, String) Inherited from ContextWrapper
SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

Version of SendBroadcast(Intent) that allows you to receive data back from the broadcast.

(Inherited from ContextWrapper)
SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SendStickyBroadcast(Intent) SendStickyBroadcast(Intent) Inherited from ContextWrapper
SendStickyBroadcastAsUser(Intent, UserHandle) SendStickyBroadcastAsUser(Intent, UserHandle) Inherited from ContextWrapper
SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle) SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle) SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle) Inherited from ContextWrapper
SetActionBar(Toolbar) SetActionBar(Toolbar)

Set a Toolbar to act as the ActionBar for this Activity window.

SetContentView(Int32) SetContentView(Int32)

Set the activity content from a layout resource.

SetContentView(View) SetContentView(View)

Set the activity content to an explicit view.

SetContentView(View, ViewGroup+LayoutParams) SetContentView(View, ViewGroup+LayoutParams)

Set the activity content to an explicit view.

SetDefaultKeyMode(DefaultKey) SetDefaultKeyMode(DefaultKey)

Select the default key handling for this activity.

SetEnterSharedElementCallback(SharedElementCallback) SetEnterSharedElementCallback(SharedElementCallback)
SetExitSharedElementCallback(SharedElementCallback) SetExitSharedElementCallback(SharedElementCallback)
SetFeatureDrawable(WindowFeatures, Drawable) SetFeatureDrawable(WindowFeatures, Drawable)

Convenience for calling SetFeatureDrawable(WindowFeatures, Drawable).

SetFeatureDrawableAlpha(WindowFeatures, Int32) SetFeatureDrawableAlpha(WindowFeatures, Int32)

Convenience for calling SetFeatureDrawableAlpha(WindowFeatures, Int32).

SetFeatureDrawableResource(WindowFeatures, Int32) SetFeatureDrawableResource(WindowFeatures, Int32)

Convenience for calling SetFeatureDrawableResource(WindowFeatures, Int32).

SetFeatureDrawableUri(WindowFeatures, Uri) SetFeatureDrawableUri(WindowFeatures, Uri)

Convenience for calling SetFeatureDrawableUri(WindowFeatures, Uri).

SetFinishOnTouchOutside(Boolean) SetFinishOnTouchOutside(Boolean)

Sets whether this activity is finished when touched outside its window's bounds.

SetHandle(IntPtr, JniHandleOwnership) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPersistent(Boolean) SetPersistent(Boolean)
SetPictureInPictureParams(PictureInPictureParams) SetPictureInPictureParams(PictureInPictureParams)
SetProgress(Int32) SetProgress(Int32)

Sets the progress for the progress bars in the title.

SetProgressBarIndeterminate(Boolean) SetProgressBarIndeterminate(Boolean)

Sets whether the horizontal progress bar in the title should be indeterminate (the circular is always indeterminate).

SetProgressBarIndeterminateVisibility(Boolean) SetProgressBarIndeterminateVisibility(Boolean)

Sets the visibility of the indeterminate progress bar in the title.

SetProgressBarVisibility(Boolean) SetProgressBarVisibility(Boolean)

Sets the visibility of the progress bar in the title.

SetResult(Result) SetResult(Result)

Call this to set the result that your activity will return to its caller.

SetResult(Result, Intent) SetResult(Result, Intent)

Call this to set the result that your activity will return to its caller.

SetSecondaryProgress(Int32) SetSecondaryProgress(Int32)

Sets the secondary progress for the progress bar in the title.

SetShowWhenLocked(Boolean) SetShowWhenLocked(Boolean)
SetTaskDescription(ActivityManager+TaskDescription) SetTaskDescription(ActivityManager+TaskDescription)

Sets information describing the task with this activity for presentation inside the Recents System UI.

SetTheme(Int32) SetTheme(Int32)

Set the base theme for this context.

(Inherited from ContextWrapper)
SetTitle(Int32) SetTitle(Int32)

Change the title associated with this activity.

SetTurnScreenOn(Boolean) SetTurnScreenOn(Boolean)
SetVisible(Boolean) SetVisible(Boolean)

Control whether this activity's main window is visible.

SetVrModeEnabled(Boolean, ComponentName) SetVrModeEnabled(Boolean, ComponentName)
SetWallpaper(Bitmap) SetWallpaper(Bitmap) Inherited from ContextWrapper
SetWallpaper(Stream) SetWallpaper(Stream) Inherited from ContextWrapper
ShouldShowRequestPermissionRationale(String) ShouldShowRequestPermissionRationale(String)
ShouldUpRecreateTask(Intent) ShouldUpRecreateTask(Intent)

Returns true if the app should recreate the task when navigating 'up' from this activity by using targetIntent.

ShowAssist(Bundle) ShowAssist(Bundle)
ShowDialog(Int32) ShowDialog(Int32)

Simple version of ShowDialog(Int32, Bundle) that does not take any arguments.

ShowDialog(Int32, Bundle) ShowDialog(Int32, Bundle)

Show a dialog managed by this activity.

ShowLockTaskEscapeMessage() ShowLockTaskEscapeMessage()
StartActionMode(ActionMode+ICallback) StartActionMode(ActionMode+ICallback)

Start an action mode of the default type Primary.

StartActionMode(ActionMode+ICallback, ActionModeType) StartActionMode(ActionMode+ICallback, ActionModeType)
StartActivities(Intent[]) StartActivities(Intent[])

Same as StartActivities(Intent[], Bundle) with no options specified.

(Inherited from ContextWrapper)
StartActivities(Intent[], Bundle) StartActivities(Intent[], Bundle)

Launch multiple new activities.

(Inherited from ContextWrapper)
StartActivity(Intent) StartActivity(Intent)

Same as StartActivity(Intent, Bundle) with no options specified.

(Inherited from ContextWrapper)
StartActivity(Intent, Bundle) StartActivity(Intent, Bundle)

Launch a new activity.

(Inherited from ContextWrapper)
StartActivity(Type) StartActivity(Type) Inherited from Context
StartActivityForResult(Intent, Int32) StartActivityForResult(Intent, Int32)

M:Android.App.Activity.StartActivityForResult(Android.Content.Intent,System.Int32,System.Int32)

StartActivityForResult(Intent, Int32, Bundle) StartActivityForResult(Intent, Int32, Bundle)

Launch an activity for which you would like a result when it finished.

StartActivityForResult(Type, Int32) StartActivityForResult(Type, Int32)
StartActivityFromChild(Activity, Intent, Int32) StartActivityFromChild(Activity, Intent, Int32)

M:Android.App.Activity.StartActivityFromChild(Android.App.Activity,Android.Content.Intent,Android.Content.Intent,Android.Content.Intent)

StartActivityFromChild(Activity, Intent, Int32, Bundle) StartActivityFromChild(Activity, Intent, Int32, Bundle)

This is called when a child activity of this one calls its M:Android.Content.Context.StartActivity or StartActivityForResult(Intent, Int32) method.

StartActivityFromFragment(Fragment, Intent, Int32) StartActivityFromFragment(Fragment, Intent, Int32)

M:Android.App.Activity.StartActivityFromFragment(Android.App.Fragment,Android.Content.Intent,Android.Content.Intent,Android.Content.Intent)

StartActivityFromFragment(Fragment, Intent, Int32, Bundle) StartActivityFromFragment(Fragment, Intent, Int32, Bundle)

This is called when a Fragment in this activity calls its StartActivity(Intent) or StartActivityForResult(Intent, Int32) method.

StartActivityIfNeeded(Intent, Int32) StartActivityIfNeeded(Intent, Int32)

M:Android.App.Activity.StartActivityIfNeeded(Android.Content.Intent,System.Int32,System.Int32)

StartActivityIfNeeded(Intent, Int32, Bundle) StartActivityIfNeeded(Intent, Int32, Bundle)

A special variation to launch an activity only if a new activity instance is needed to handle the given Intent.

StartForegroundService(Intent) StartForegroundService(Intent) Inherited from ContextWrapper
StartInstrumentation(ComponentName, String, Bundle) StartInstrumentation(ComponentName, String, Bundle)

Start executing an Instrumentation class.

(Inherited from ContextWrapper)
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) Inherited from ContextWrapper
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

Like StartActivity(Intent, Bundle), but taking a IntentSender to start.

(Inherited from ContextWrapper)
StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32) StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)

M:Android.App.Activity.StartIntentSenderForResult(Android.Content.IntentSender,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)

StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) StartIntentSenderForResult(IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)

Like StartActivityForResult(Intent, Int32), but allowing you to use a IntentSender to describe the activity to be started.

StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32) StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)
StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle) StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)
StartLocalVoiceInteraction(Bundle) StartLocalVoiceInteraction(Bundle)
StartLockTask() StartLockTask()

Request to put this Activity in a mode where the user is locked to the current task.

StartManagingCursor(ICursor) StartManagingCursor(ICursor)

This method allows the activity to take care of managing the given ICursor's lifecycle for you based on the activity's lifecycle.

StartNextMatchingActivity(Intent) StartNextMatchingActivity(Intent)

Same as calling StartNextMatchingActivity(Intent, Bundle) with no options.

StartNextMatchingActivity(Intent, Bundle) StartNextMatchingActivity(Intent, Bundle)

Special version of starting an activity, for use when you are replacing other activity components.

StartPostponedEnterTransition() StartPostponedEnterTransition()

Begin postponed transitions after PostponeEnterTransition() was called.

StartSearch(String, Boolean, Bundle, Boolean) StartSearch(String, Boolean, Bundle, Boolean)

This hook is called to launch the search UI.

StartService(Intent) StartService(Intent)

Request that a given application service be started.

(Inherited from ContextWrapper)
StopLocalVoiceInteraction() StopLocalVoiceInteraction()
StopLockTask() StopLockTask()

Allow the user to switch away from the current task.

StopManagingCursor(ICursor) StopManagingCursor(ICursor)

Given a Cursor that was previously given to StartManagingCursor(ICursor), stop the activity's management of that cursor.

StopService(Intent) StopService(Intent)

Request that a given application service be stopped.

(Inherited from ContextWrapper)
TakeKeyEvents(Boolean) TakeKeyEvents(Boolean)

Request that key events come to this activity.

ToArray<T>() ToArray<T>() Inherited from Object
ToString() ToString()

Returns a string containing a concise, human-readable description of this object.

(Inherited from Object)
TriggerSearch(String, Bundle) TriggerSearch(String, Bundle)

M:Android.App.Activity.StartSearch(System.String,System.Boolean,System.Boolean,System.Boolean)

UnbindService(IServiceConnection) UnbindService(IServiceConnection)

Disconnect from an application service.

(Inherited from ContextWrapper)
UnregisterComponentCallbacks(IComponentCallbacks) UnregisterComponentCallbacks(IComponentCallbacks)

Remove a IComponentCallbacks object that was previously registered with RegisterComponentCallbacks(IComponentCallbacks).

(Inherited from Context)
UnregisterForContextMenu(View) UnregisterForContextMenu(View)

Prevents a context menu to be shown for the given view.

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
UnregisterReceiver(BroadcastReceiver) UnregisterReceiver(BroadcastReceiver)

Unregister a previously registered BroadcastReceiver.

(Inherited from ContextWrapper)
Wait() Wait()

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.

(Inherited from Object)
Wait(Int64) Wait(Int64)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)
Wait(Int64, Int32) Wait(Int64, Int32)

Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the specified timeout expires.

(Inherited from Object)

Fields

AccessibilityService AccessibilityService

Use with GetSystemService(String) to retrieve a AccessibilityManager for giving the user feedback for UI events through the registered event listeners.

(Inherited from Context)
AccountService AccountService

Use with GetSystemService(String) to retrieve a AccountManager for receiving intents at a time of your choosing.

(Inherited from Context)
ActivityService ActivityService

Use with GetSystemService(String) to retrieve a ActivityManager for interacting with the global system state.

(Inherited from Context)
AlarmService AlarmService

Use with GetSystemService(String) to retrieve a AlarmManager for receiving intents at a time of your choosing.

(Inherited from Context)
AppOpsService AppOpsService

Use with GetSystemService(String) to retrieve a AppOpsManager for tracking application operations on the device.

(Inherited from Context)
AppwidgetService AppwidgetService

Use with GetSystemService(String) to retrieve a AppWidgetManager for accessing AppWidgets.

(Inherited from Context)
AudioService AudioService

Use with GetSystemService(String) to retrieve a AudioManager for handling management of volume, ringer modes and audio routing.

(Inherited from Context)
BatteryService BatteryService

Use with GetSystemService(String) to retrieve a BatteryManager for managing battery state.

(Inherited from Context)
BluetoothService BluetoothService

Use with GetSystemService(String) to retrieve a BluetoothManager for using Bluetooth.

(Inherited from Context)
CameraService CameraService

Use with GetSystemService(String) to retrieve a CameraManager for interacting with camera devices.

(Inherited from Context)
CaptioningService CaptioningService

Use with GetSystemService(String) to retrieve a CaptioningManager for obtaining captioning properties and listening for changes in captioning preferences.

(Inherited from Context)
CarrierConfigService CarrierConfigService Inherited from Context
ClipboardService ClipboardService

Use with GetSystemService(String) to retrieve a ClipboardManager for accessing and modifying ClipboardManager for accessing and modifying the contents of the global clipboard.

(Inherited from Context)
CompanionDeviceService CompanionDeviceService Inherited from Context
ConnectivityService ConnectivityService

Use with GetSystemService(String) to retrieve a ConnectivityManager for handling management of network connections.

(Inherited from Context)
ConsumerIrService ConsumerIrService

Use with GetSystemService(String) to retrieve a ConsumerIrManager for transmitting infrared signals from the device.

(Inherited from Context)
DevicePolicyService DevicePolicyService

Use with GetSystemService(String) to retrieve a DevicePolicyManager for working with global device policy management.

(Inherited from Context)
DisplayService DisplayService

Use with GetSystemService(String) to retrieve a DisplayManager for interacting with display devices.

(Inherited from Context)
DownloadService DownloadService

Use with GetSystemService(String) to retrieve a DownloadManager for requesting HTTP downloads.

(Inherited from Context)
DropboxService DropboxService

Use with GetSystemService(String) to retrieve a DropBoxManager instance for recording diagnostic logs.

(Inherited from Context)
FingerprintService FingerprintService Inherited from Context
HardwarePropertiesService HardwarePropertiesService Inherited from Context
InputMethodService InputMethodService

Use with GetSystemService(String) to retrieve a InputMethodManager for accessing input methods.

(Inherited from Context)
InputService InputService

Use with GetSystemService(String) to retrieve a InputManager for interacting with input devices.

(Inherited from Context)
JobSchedulerService JobSchedulerService

Use with GetSystemService(String) to retrieve a JobScheduler instance for managing occasional background tasks.

(Inherited from Context)
KeyguardService KeyguardService

Use with GetSystemService(String) to retrieve a NotificationManager for controlling keyguard.

(Inherited from Context)
LauncherAppsService LauncherAppsService

Use with GetSystemService(String) to retrieve a LauncherApps for querying and monitoring launchable apps across profiles of a user.

(Inherited from Context)
LayoutInflaterService LayoutInflaterService

Use with GetSystemService(String) to retrieve a LayoutInflater for inflating layout resources in this context.

(Inherited from Context)
LocationService LocationService

Use with GetSystemService(String) to retrieve a LocationManager for controlling location updates.

(Inherited from Context)
MediaProjectionService MediaProjectionService

Use with GetSystemService(String) to retrieve a MediaProjectionManager instance for managing media projection sessions.

(Inherited from Context)
MediaRouterService MediaRouterService

Use with GetSystemService(String) to retrieve a MediaRouter for controlling and managing routing of media.

(Inherited from Context)
MediaSessionService MediaSessionService

Use with GetSystemService(String) to retrieve a MediaSessionManager for managing media Sessions.

(Inherited from Context)
MidiService MidiService Inherited from Context
NetworkStatsService NetworkStatsService Inherited from Context
NfcService NfcService

Use with GetSystemService(String) to retrieve a NfcManager for using NFC.

(Inherited from Context)
NotificationService NotificationService

Use with GetSystemService(String) to retrieve a NotificationManager for informing the user of background events.

(Inherited from Context)
NsdService NsdService

Use with GetSystemService(String) to retrieve a NsdManager for handling management of network service discovery

(Inherited from Context)
PowerService PowerService

Use with GetSystemService(String) to retrieve a PowerManager for controlling power management, including "wake locks," which let you keep the device on while you're running long tasks.

(Inherited from Context)
PrintService PrintService

PrintManager for printing and managing printers and print tasks.

(Inherited from Context)
ReceiverVisibleToInstantApps ReceiverVisibleToInstantApps Inherited from Context
RestrictionsService RestrictionsService

Use with GetSystemService(String) to retrieve a RestrictionsManager for retrieving application restrictions and requesting permissions for restricted operations.

(Inherited from Context)
SearchService SearchService

Use with GetSystemService(String) to retrieve a SearchManager for handling searches.

(Inherited from Context)
SensorService SensorService

Use with GetSystemService(String) to retrieve a SensorManager for accessing sensors.

(Inherited from Context)
ShortcutService ShortcutService Inherited from Context
StorageService StorageService

Use with GetSystemService(String) to retrieve a StorageManager for accessing system storage functions.

(Inherited from Context)
StorageStatsService StorageStatsService Inherited from Context
SystemHealthService SystemHealthService Inherited from Context
TelecomService TelecomService

Use with GetSystemService(String) to retrieve a TelecomManager to manage telecom-related features of the device.

(Inherited from Context)
TelephonyService TelephonyService

Use with GetSystemService(String) to retrieve a TelephonyManager for handling management the telephony features of the device.

(Inherited from Context)
TelephonySubscriptionService TelephonySubscriptionService Inherited from Context
TextClassificationService TextClassificationService Inherited from Context
TextServicesManagerService TextServicesManagerService

Use with GetSystemService(String) to retrieve a TextServicesManager for accessing text services.

(Inherited from Context)
TvInputService TvInputService

Use with GetSystemService(String) to retrieve a TvInputManager for interacting with TV inputs on the device.

(Inherited from Context)
UiModeService UiModeService

Use with GetSystemService(String) to retrieve a UiModeManager for controlling UI modes.

(Inherited from Context)
UsageStatsService UsageStatsService Inherited from Context
UsbService UsbService

Use with GetSystemService(String) to retrieve a UsbManager for access to USB devices (as a USB host) and for controlling this device's behavior as a USB device.

(Inherited from Context)
UserService UserService

Use with GetSystemService(String) to retrieve a UserManager for managing users on devices that support multiple users.

(Inherited from Context)
VibratorService VibratorService

Use with GetSystemService(String) to retrieve a Vibrator for interacting with the vibration hardware.

(Inherited from Context)
WallpaperService WallpaperService

Use with GetSystemService(String) to retrieve a com.android.server.

(Inherited from Context)
WifiAwareService WifiAwareService Inherited from Context
WifiP2pService WifiP2pService

Use with GetSystemService(String) to retrieve a WifiP2pManager for handling management of Wi-Fi peer-to-peer connections.

(Inherited from Context)
WifiService WifiService

Use with GetSystemService(String) to retrieve a WifiManager for handling management of Wi-Fi access.

(Inherited from Context)
WindowService WindowService

Use with GetSystemService(String) to retrieve a IWindowManager for accessing the system's window manager.

(Inherited from Context)

Explicit Interface Implementations

IJavaObjectEx.ToLocalJniHandle() IJavaObjectEx.ToLocalJniHandle() Inherited from Object
IJavaPeerable.Disposed() IJavaPeerable.Disposed() Inherited from Object
IJavaPeerable.DisposeUnlessReferenced() IJavaPeerable.DisposeUnlessReferenced() Inherited from Object
IJavaPeerable.Finalized() IJavaPeerable.Finalized() Inherited from Object
IJavaPeerable.SetJniIdentityHashCode(Int32) IJavaPeerable.SetJniIdentityHashCode(Int32) Inherited from Object
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) Inherited from Object
IJavaPeerable.SetPeerReference(JniObjectReference) IJavaPeerable.SetPeerReference(JniObjectReference) Inherited from Object

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable) GetJniTypeName(IJavaPeerable)

Applies to