Activity Class

Definition

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

[Android.Runtime.Register("android/app/Activity", 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, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/app/Activity", DoNotGenerateAcw=true)>]
type Activity = class
    inherit ContextThemeWrapper
    interface IComponentCallbacks
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    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(IntPtr, JniHandleOwnership)

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

Fields

AccessibilityService

Use with #getSystemService(String) to retrieve a android.view.accessibility.AccessibilityManager for giving the user feedback for UI events through the registered event listeners.

(Inherited from Context)
AccountService

Use with #getSystemService(String) to retrieve a android.accounts.AccountManager for receiving intents at a time of your choosing.

(Inherited from Context)
ActivityService

Use with #getSystemService(String) to retrieve a android.app.ActivityManager for interacting with the global system state.

(Inherited from Context)
AlarmService

Use with #getSystemService(String) to retrieve a android.app.AlarmManager for receiving intents at a time of your choosing.

(Inherited from Context)
AppOpsService

Use with #getSystemService(String) to retrieve a android.app.AppOpsManager for tracking application operations on the device.

(Inherited from Context)
AppSearchService

Use with #getSystemService(String) to retrieve an android.app.appsearch.AppSearchManager for indexing and querying app data managed by the system.

(Inherited from Context)
AppwidgetService

Use with #getSystemService(String) to retrieve a android.appwidget.AppWidgetManager for accessing AppWidgets.

(Inherited from Context)
AudioService

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

(Inherited from Context)
BatteryService

Use with #getSystemService(String) to retrieve a android.os.BatteryManager for managing battery state.

(Inherited from Context)
BindNotPerceptible
Obsolete.

Flag for #bindService: If binding from an app that is visible or user-perceptible, lower the target service's importance to below the perceptible level.

(Inherited from Context)
BiometricService

Use with #getSystemService(String) to retrieve a android.hardware.biometrics.BiometricManager for handling biometric and PIN/pattern/password authentication.

(Inherited from Context)
BlobStoreService

Use with #getSystemService(String) to retrieve a android.app.blob.BlobStoreManager for contributing and accessing data blobs from the blob store maintained by the system.

(Inherited from Context)
BluetoothService

Use with #getSystemService(String) to retrieve a android.bluetooth.BluetoothManager for using Bluetooth.

(Inherited from Context)
BugreportService

Service to capture a bugreport.

(Inherited from Context)
CameraService

Use with #getSystemService(String) to retrieve a android.hardware.camera2.CameraManager for interacting with camera devices.

(Inherited from Context)
CaptioningService

Use with #getSystemService(String) to retrieve a android.view.accessibility.CaptioningManager for obtaining captioning properties and listening for changes in captioning preferences.

(Inherited from Context)
CarrierConfigService

Use with #getSystemService(String) to retrieve a android.telephony.CarrierConfigManager for reading carrier configuration values.

(Inherited from Context)
ClipboardService

Use with #getSystemService(String) to retrieve a android.content.ClipboardManager for accessing and modifying the contents of the global clipboard.

(Inherited from Context)
CompanionDeviceService

Use with #getSystemService(String) to retrieve a android.companion.CompanionDeviceManager for managing companion devices

(Inherited from Context)
ConnectivityDiagnosticsService

Use with #getSystemService(String) to retrieve a android.net.ConnectivityDiagnosticsManager for performing network connectivity diagnostics as well as receiving network connectivity information from the system.

(Inherited from Context)
ConnectivityService

Use with #getSystemService(String) to retrieve a android.net.ConnectivityManager for handling management of network connections.

(Inherited from Context)
ConsumerIrService

Use with #getSystemService(String) to retrieve a android.hardware.ConsumerIrManager for transmitting infrared signals from the device.

(Inherited from Context)
CrossProfileAppsService

Use with #getSystemService(String) to retrieve a android.content.pm.CrossProfileApps for cross profile operations.

(Inherited from Context)
DevicePolicyService

Use with #getSystemService(String) to retrieve a android.app.admin.DevicePolicyManager for working with global device policy management.

(Inherited from Context)
DisplayHashService

Use with #getSystemService(String) to access android.view.displayhash.DisplayHashManager to handle display hashes.

(Inherited from Context)
DisplayService

Use with #getSystemService(String) to retrieve a android.hardware.display.DisplayManager for interacting with display devices.

(Inherited from Context)
DomainVerificationService

Use with #getSystemService(String) to access android.content.pm.verify.domain.DomainVerificationManager to retrieve approval and user state for declared web domains.

(Inherited from Context)
DownloadService

Use with #getSystemService(String) to retrieve a android.app.DownloadManager for requesting HTTP downloads.

(Inherited from Context)
DropboxService

Use with #getSystemService(String) to retrieve a android.os.DropBoxManager instance for recording diagnostic logs.

(Inherited from Context)
EuiccService

Use with #getSystemService(String) to retrieve a android.telephony.euicc.EuiccManager to manage the device eUICC (embedded SIM).

(Inherited from Context)
FileIntegrityService

Use with #getSystemService(String) to retrieve an android.security.FileIntegrityManager.

(Inherited from Context)
FingerprintService

Use with #getSystemService(String) to retrieve a android.hardware.fingerprint.FingerprintManager for handling management of fingerprints.

(Inherited from Context)
GameService

Use with #getSystemService(String) to retrieve a GameManager.

(Inherited from Context)
HardwarePropertiesService

Use with #getSystemService(String) to retrieve a android.os.HardwarePropertiesManager for accessing the hardware properties service.

(Inherited from Context)
InputMethodService

Use with #getSystemService(String) to retrieve a android.view.inputmethod.InputMethodManager for accessing input methods.

(Inherited from Context)
InputService

Use with #getSystemService(String) to retrieve a android.hardware.input.InputManager for interacting with input devices.

(Inherited from Context)
IpsecService

Use with #getSystemService(String) to retrieve a android.net.IpSecManager for encrypting Sockets or Networks with IPSec.

(Inherited from Context)
JobSchedulerService

Use with #getSystemService(String) to retrieve a android.app.job.JobScheduler instance for managing occasional background tasks.

(Inherited from Context)
KeyguardService

Use with #getSystemService(String) to retrieve a android.app.KeyguardManager for controlling keyguard.

(Inherited from Context)
LauncherAppsService

Use with #getSystemService(String) to retrieve a android.content.pm.LauncherApps for querying and monitoring launchable apps across profiles of a user.

(Inherited from Context)
LayoutInflaterService

Use with #getSystemService(String) to retrieve a android.view.LayoutInflater for inflating layout resources in this context.

(Inherited from Context)
LocationService

Use with #getSystemService(String) to retrieve a android.location.LocationManager for controlling location updates.

(Inherited from Context)
MediaCommunicationService

Use with #getSystemService(String) to retrieve a android.media.MediaCommunicationManager for managing android.media.MediaSession2.

(Inherited from Context)
MediaMetricsService

Use with #getSystemService(String) to retrieve a android.media.metrics.MediaMetricsManager for interacting with media metrics on the device.

(Inherited from Context)
MediaProjectionService

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

(Inherited from Context)
MediaRouterService

Use with #getSystemService to retrieve a android.media.MediaRouter for controlling and managing routing of media.

(Inherited from Context)
MediaSessionService

Use with #getSystemService(String) to retrieve a android.media.session.MediaSessionManager for managing media Sessions.

(Inherited from Context)
MidiService

Use with #getSystemService(String) to retrieve a android.media.midi.MidiManager for accessing the MIDI service.

(Inherited from Context)
NetworkStatsService

Use with #getSystemService(String) to retrieve a android.app.usage.NetworkStatsManager for querying network usage stats.

(Inherited from Context)
NfcService

Use with #getSystemService(String) to retrieve a android.nfc.NfcManager for using NFC.

(Inherited from Context)
NotificationService

Use with #getSystemService(String) to retrieve a android.app.NotificationManager for informing the user of background events.

(Inherited from Context)
NsdService

Use with #getSystemService(String) to retrieve a android.net.nsd.NsdManager for handling management of network service discovery

(Inherited from Context)
PeopleService

Use with #getSystemService(String) to access a PeopleManager to interact with your published conversations.

(Inherited from Context)
PerformanceHintService

Use with #getSystemService(String) to retrieve a android.os.PerformanceHintManager for accessing the performance hinting service.

(Inherited from Context)
PowerService

Use with #getSystemService(String) to retrieve a android.os.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

android.print.PrintManager for printing and managing printers and print tasks.

(Inherited from Context)
ReceiverVisibleToInstantApps

Flag for #registerReceiver: The receiver can receive broadcasts from Instant Apps.

(Inherited from Context)
RestrictionsService

Use with #getSystemService(String) to retrieve a android.content.RestrictionsManager for retrieving application restrictions and requesting permissions for restricted operations.

(Inherited from Context)
RoleService

Use with #getSystemService(String) to retrieve a android.app.role.RoleManager for managing roles.

(Inherited from Context)
SearchService

Use with #getSystemService(String) to retrieve a android.app.SearchManager for handling searches.

(Inherited from Context)
SensorService

Use with #getSystemService(String) to retrieve a android.hardware.SensorManager for accessing sensors.

(Inherited from Context)
ShortcutService

Use with #getSystemService(String) to retrieve a android.content.pm.ShortcutManager for accessing the launcher shortcut service.

(Inherited from Context)
StorageService

Use with #getSystemService(String) to retrieve a android.os.storage.StorageManager for accessing system storage functions.

(Inherited from Context)
StorageStatsService

Use with #getSystemService(String) to retrieve a android.app.usage.StorageStatsManager for accessing system storage statistics.

(Inherited from Context)
SystemHealthService

Use with #getSystemService(String) to retrieve a android.os.health.SystemHealthManager for accessing system health (battery, power, memory, etc) metrics.

(Inherited from Context)
TelecomService

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

(Inherited from Context)
TelephonyImsService

Use with #getSystemService(String) to retrieve an android.telephony.ims.ImsManager.

(Inherited from Context)
TelephonyService

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

(Inherited from Context)
TelephonySubscriptionService

Use with #getSystemService(String) to retrieve a android.telephony.SubscriptionManager for handling management the telephony subscriptions of the device.

(Inherited from Context)
TextClassificationService

Use with #getSystemService(String) to retrieve a TextClassificationManager for text classification services.

(Inherited from Context)
TextServicesManagerService

Use with #getSystemService(String) to retrieve a android.view.textservice.TextServicesManager for accessing text services.

(Inherited from Context)
TvInputService

Use with #getSystemService(String) to retrieve a android.media.tv.TvInputManager for interacting with TV inputs on the device.

(Inherited from Context)
UiModeService

Use with #getSystemService(String) to retrieve a android.app.UiModeManager for controlling UI modes.

(Inherited from Context)
UsageStatsService

Use with #getSystemService(String) to retrieve a android.app.usage.UsageStatsManager for querying device usage stats.

(Inherited from Context)
UsbService

Use with #getSystemService(String) to retrieve a android.hardware.usb.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

Use with #getSystemService(String) to retrieve a android.os.UserManager for managing users on devices that support multiple users.

(Inherited from Context)
VibratorManagerService

Use with #getSystemService(String) to retrieve a android.os.VibratorManager for accessing the device vibrators, interacting with individual ones and playing synchronized effects on multiple vibrators.

(Inherited from Context)
VibratorService
Obsolete.

Use with #getSystemService(String) to retrieve a android.os.Vibrator for interacting with the vibration hardware.

(Inherited from Context)
VpnManagementService

Use with #getSystemService(String) to retrieve a android.net.VpnManager to manage profiles for the platform built-in VPN.

(Inherited from Context)
WallpaperService

Use with #getSystemService(String) to retrieve a com.

(Inherited from Context)
WifiAwareService

Use with #getSystemService(String) to retrieve a android.net.wifi.aware.WifiAwareManager for handling management of Wi-Fi Aware.

(Inherited from Context)
WifiP2pService

Use with #getSystemService(String) to retrieve a android.net.wifi.p2p.WifiP2pManager for handling management of Wi-Fi peer-to-peer connections.

(Inherited from Context)
WifiRttRangingService

Use with #getSystemService(String) to retrieve a android.net.wifi.rtt.WifiRttManager for ranging devices with wifi.

(Inherited from Context)
WifiService

Use with #getSystemService(String) to retrieve a android.net.wifi.WifiManager for handling management of Wi-Fi access.

(Inherited from Context)
WindowService

Use with #getSystemService(String) to retrieve a android.view.WindowManager for accessing the system's window manager.

(Inherited from Context)

Properties

ActionBar

Retrieve a reference to this activity's ActionBar.

Application

Return the application that owns this activity.

ApplicationContext

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

(Inherited from ContextWrapper)
ApplicationInfo

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

(Inherited from ContextWrapper)
Assets

Return an AssetManager instance for your application's package.

(Inherited from ContextWrapper)
AttributionSource (Inherited from Context)
AttributionTag

Attribution can be used in complex apps to logically separate parts of the app.

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

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

(Inherited from ContextWrapper)
CallingActivity

Return the name of the activity that invoked this activity.

CallingPackage

Return the name of the package that invoked this activity.

ChangingConfigurations

If this activity is being destroyed because it can not handle a configuration parameter being changed (and thus its #onConfigurationChanged(Configuration) method is <em>not</em> being called), then you can use this method to discover the set of changes that have occurred while in the process of being destroyed.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ClassLoader

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

(Inherited from ContextWrapper)
CodeCacheDir

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

(Inherited from ContextWrapper)
ComponentName

Returns the complete component name of this activity.

ContentResolver

Return a ContentResolver instance for your application's package.

(Inherited from ContextWrapper)
ContentScene

Retrieve the Scene representing this window's current content.

ContentTransitionManager

Retrieve the TransitionManager responsible for default transitions in this window. -or- Set the TransitionManager to use for default transitions in this window.

CurrentFocus

Calls android.view.Window#getCurrentFocus on the Window of this Activity to return the currently focused view.

DataDir (Inherited from ContextWrapper)
Display

Get the display this context is associated with.

(Inherited from Context)
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

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

(Inherited from ContextWrapper)
FocusedStateSet
FragmentManager
Obsolete.

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

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasWindowFocus

Returns true if this activity's <em>main</em> window currently has window focus.

Immersive

Bit indicating that this activity is "immersive" and should not be interrupted by notifications if possible. -or- Adjust the current immersive mode setting.

InstanceCount
Intent

Return the intent that started this activity. -or- Change the intent returned by #getIntent.

IsActivityTransitionRunning

Returns whether there are any activity transitions currently running on this activity.

IsChangingConfigurations

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

IsChild

Is this activity embedded inside of another activity?

IsDestroyed

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

IsDeviceProtectedStorage (Inherited from ContextWrapper)
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

Returns true if the activity is currently in multi-window mode.

IsInPictureInPictureMode

Returns true if the activity is currently in picture-in-picture mode.

IsLaunchedFromBubble

Indicates whether this activity is launched from a bubble.

IsLocalVoiceInteractionSupported

Queries whether the currently enabled voice interaction service supports returning a voice interactor for use by the activity.

IsRestricted

Indicates whether this Context is restricted.

(Inherited from Context)
IsTaskRoot

Return whether this activity is the root of a task.

IsUiContext

Returns true if the context is a UI context which can access UI components such as WindowManager, android.view.LayoutInflater LayoutInflater or android.app.WallpaperManager WallpaperManager.

(Inherited from Context)
IsVoiceInteraction

Check whether this activity is running as part of a voice interaction with the user.

IsVoiceInteractionRoot

Like #isVoiceInteraction, but only returns true if this is also the root of a voice interaction.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LastNonConfigurationInstance

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

LayoutInflater

Convenience for calling android.view.Window#getLayoutInflater.

LoaderManager
Obsolete.

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

LocalClassName

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

MainExecutor

Return an Executor that will run enqueued tasks on the main thread associated with this context.

(Inherited from Context)
MainLooper

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

(Inherited from ContextWrapper)
MaxNumPictureInPictureActions

Return the number of actions that will be displayed in the picture-in-picture UI when the user interacts with the activity currently in picture-in-picture mode.

MediaController

Gets the controller which should be receiving media key and volume events while this activity is in the foreground. -or- Sets a MediaController to send media keys and volume changes to.

MenuInflater

Returns a MenuInflater with this context.

NoBackupFilesDir

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

(Inherited from ContextWrapper)
ObbDir

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

(Inherited from ContextWrapper)
OpPackageName

Return the package name that should be used for android.app.AppOpsManager calls from this context, so that app ops manager's uid verification will work with the name.

(Inherited from Context)
PackageCodePath

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

(Inherited from ContextWrapper)
PackageManager

Return PackageManager instance to find global package information.

(Inherited from ContextWrapper)
PackageName

Return the name of this application's package.

(Inherited from ContextWrapper)
PackageResourcePath

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

(Inherited from ContextWrapper)
Params

Return the set of parameters which this Context was created with, if it was created via #createContext(ContextParams).

(Inherited from Context)
Parent

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

ParentActivityIntent

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

PeerReference (Inherited from Object)
Referrer

Return information about who launched this activity.

RequestedOrientation

Return the current requested orientation of the activity. -or- Change the desired orientation of this activity.

Resources

Return a Resources instance for your application's package.

(Inherited from ContextWrapper)
SearchEvent

During the onSearchRequested() callbacks, this function will return the SearchEvent that triggered the callback, if it exists.

SplashScreen

Get the interface that activity use to talk to the splash screen.

TaskId

Return the identifier of the task this activity is in.

Theme

Return the Theme object associated with this Context.

(Inherited from ContextWrapper)
ThresholdClass

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

ThresholdType

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

Title
TitleColor

Change the color of the title associated with this activity.

TitleFormatted

Change the title associated with this activity.

VoiceInteractor

Retrieve the active VoiceInteractor that the user is going through to interact with this activity.

VolumeControlStream

Gets the suggested audio stream whose volume should be changed by the hardware volume controls. -or- Suggests an audio stream whose volume should be changed by the hardware volume controls.

Wallpaper
Obsolete.
(Inherited from ContextWrapper)
WallpaperDesiredMinimumHeight
Obsolete.
(Inherited from ContextWrapper)
WallpaperDesiredMinimumWidth
Obsolete.
(Inherited from ContextWrapper)
Window

Retrieve the current android.view.Window for the activity.

WindowManager

Retrieve the window manager for showing custom windows.

Methods

AddContentView(View, ViewGroup+LayoutParams)

Add an additional content view to the activity.

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)

Set the base context for this ContextWrapper.

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

Same as #bindService(Intent, ServiceConnection, int) with executor to control ServiceConnection callbacks.

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

Connect to an application service, creating it if needed.

(Inherited from ContextWrapper)
BindServiceAsUser(Intent, IServiceConnection, Int32, UserHandle)

Binds to a service in the given user in the same manner as #bindService(Intent, ServiceConnection, int).

(Inherited from Context)
CheckCallingOrSelfPermission(String)

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

(Inherited from ContextWrapper)
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)
CheckCallingOrSelfUriPermissions(IList<Uri>, Int32)

Determine whether the calling process of an IPC <em>or you</em> has been granted permission to access a list of URIs.

(Inherited from Context)
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)

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

(Inherited from ContextWrapper)
CheckCallingUriPermissions(IList<Uri>, Int32)

Determine whether the calling process and user ID has been granted permission to access a list of URIs.

(Inherited from Context)
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) (Inherited from ContextWrapper)
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)

Check both a Uri and normal permission.

(Inherited from ContextWrapper)
CheckUriPermissions(IList<Uri>, Int32, Int32, Int32)

Determine whether a particular process and user ID has been granted permission to access a list of URIs.

(Inherited from Context)
ClearWallpaper()
Obsolete.
(Inherited from ContextWrapper)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CloseContextMenu()

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

CloseOptionsMenu()

Progammatically closes the options menu.

CreateAttributionContext(String)

Return a new Context object for the current Context but attribute to a different tag.

(Inherited from Context)
CreateConfigurationContext(Configuration)

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

(Inherited from ContextWrapper)
CreateContext(ContextParams)

Creates a context with specific properties and behaviors.

(Inherited from Context)
CreateContextForSplit(String) (Inherited from ContextWrapper)
CreateDeviceProtectedStorageContext() (Inherited from ContextWrapper)
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)

Return a new Context object for the given application name.

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

Create a new PendingIntent object which you can hand to others for them to use to send result data back to your #onActivityResult callback.

CreateWindowContext(Display, Int32, Bundle)

Creates a Context for a non-android.app.Activity activity window on the given Display.

(Inherited from Context)
CreateWindowContext(Int32, Bundle)

Creates a Context for a non-activity window.

(Inherited from Context)
DatabaseList()

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

(Inherited from ContextWrapper)
DeleteDatabase(String)

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

(Inherited from ContextWrapper)
DeleteFile(String)

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

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

Dismiss a dialog that was previously shown via #showDialog(int).

DismissKeyboardShortcutsHelper()

Dismiss the Keyboard Shortcuts screen.

DispatchGenericMotionEvent(MotionEvent)

Called to process generic motion events.

DispatchKeyEvent(KeyEvent)

Called to process key events.

DispatchKeyShortcutEvent(KeyEvent)

Called to process a key shortcut event.

DispatchPopulateAccessibilityEvent(AccessibilityEvent)

Called to process population of AccessibilityEvents.

DispatchTouchEvent(MotionEvent)

Called to process touch screen events.

DispatchTrackballEvent(MotionEvent)

Called to process trackball events.

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

Print the Activity's state into the given stream.

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)

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)

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)

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)

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)

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)

Enforce both a Uri and normal permission.

(Inherited from ContextWrapper)
EnterPictureInPictureMode()
Obsolete.

Puts the activity in picture-in-picture mode if possible in the current system state.

EnterPictureInPictureMode(PictureInPictureParams)

Puts the activity in picture-in-picture mode if possible in the current system state.

Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FileList()

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

(Inherited from ContextWrapper)
FindViewById(Int32)

Finds a view that was identified by the android:id XML attribute that was processed in #onCreate.

FindViewById<T>(Int32)

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

Finish()

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

FinishActivity(Int32)

Force finish another activity that you had previously started with #startActivityForResult.

FinishActivityFromChild(Activity, Int32)
Obsolete.

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

FinishAffinity()

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

FinishAfterTransition()

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

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 root activity of the task.

FinishFromChild(Activity)
Obsolete.

This is called when a child activity of this one calls its #finish method.

GetColor(Int32)

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

(Inherited from Context)
GetColorStateList(Int32)

Returns a color state list associated with a particular resource ID and styled for the current theme.

(Inherited from Context)
GetDatabasePath(String) (Inherited from ContextWrapper)
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)

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

(Inherited from Context)
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)

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)

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()

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

(Inherited from ContextWrapper)
GetFileStreamPath(String)

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

(Inherited from ContextWrapper)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
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)

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

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)

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

(Inherited from Context)
GetString(Int32, Object[])

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

(Inherited from Context)
GetSystemService(Class)

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

(Inherited from Context)
GetSystemService(String)

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

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

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

(Inherited from Context)
GetTextFormatted(Int32)

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

(Inherited from Context)
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()

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

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
ManagedQuery(Uri, String[], String, String[], String)
Obsolete.

Wrapper around ContentResolver#query(android.net.Uri , String[], String, String[], String) that gives the resulting Cursor to call #startManagingCursor so that the activity will manage its lifecycle for you.

MoveDatabaseFrom(Context, String) (Inherited from ContextWrapper)
MoveSharedPreferencesFrom(Context, String) (Inherited from ContextWrapper)
MoveTaskToBack(Boolean)

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

NavigateUpTo(Intent)

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

NavigateUpToFromChild(Activity, Intent)
Obsolete.

This is called when a child activity of this one calls its #navigateUpTo method.

Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

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

Retrieve styled attribute information in this Context's theme.

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

Retrieve styled attribute information in this Context's theme.

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

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
ObtainStyledAttributes(Int32[])

Retrieve styled attribute information in this Context's theme.

(Inherited from Context)
OnActionModeFinished(ActionMode)

Notifies the activity that an action mode has finished.

OnActionModeStarted(ActionMode)

Notifies the Activity that an action mode has been started.

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)

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)

Called by #setTheme and #getTheme to apply a theme resource to the current Theme object.

(Inherited from ContextThemeWrapper)
OnAttachedToWindow()

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

OnAttachFragment(Fragment)
Obsolete.

Called when a Fragment is being attached to this activity, immediately after the call to its Fragment#onAttach Fragment.onAttach() method and before Fragment#onCreate Fragment.onCreate().

OnBackPressed()

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

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

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

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)

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

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)

Called when the activity is starting.

OnCreate(Bundle, PersistableBundle)

Same as #onCreate(android.os.Bundle) but called for those activities created with the attribute android.R.attr#persistableMode set to <code>persistAcrossReboots</code>.

OnCreateContextMenu(IContextMenu, View, IContextMenuContextMenuInfo)

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

OnCreateDescription()

Generate a new description for this activity.

OnCreateDescriptionFormatted()

Generate a new description for this activity.

OnCreateDialog(Int32)
OnCreateDialog(Int32, Bundle)
Obsolete.

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

OnCreateNavigateUpTaskStack(TaskStackBuilder)

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

OnCreateOptionsMenu(IMenu)

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

OnCreatePanelMenu(Int32, IMenu)

Default implementation of android.view.Window.Callback#onCreatePanelMenu for activities.

OnCreatePanelView(Int32)

Default implementation of android.view.Window.Callback#onCreatePanelView for activities.

OnCreateThumbnail(Bitmap, Canvas)
Obsolete.

Generate a new thumbnail for this activity.

OnCreateView(String, Context, IAttributeSet)

Standard implementation of android.view.LayoutInflater.Factory#onCreateView used when inflating with the LayoutInflater returned by #getSystemService.

OnCreateView(View, String, Context, IAttributeSet)

Standard implementation of android.view.LayoutInflater.Factory2#onCreateView(View, String, Context, AttributeSet) used when inflating with the LayoutInflater returned by #getSystemService.

OnDestroy()

Perform any final cleanup before an activity is destroyed.

OnDetachedFromWindow()

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

OnEnterAnimationComplete()

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

OnGenericMotionEvent(MotionEvent)

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

OnGetDirectActions(CancellationSignal, IConsumer)

Returns the list of direct actions supported by the app.

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)

Default implementation of KeyEvent.Callback#onKeyLongPress(int, KeyEvent) KeyEvent.Callback.onKeyLongPress(): always returns false (doesn't handle the event).

OnKeyMultiple(Keycode, Int32, KeyEvent)

Default implementation of KeyEvent.Callback#onKeyMultiple(int, int, KeyEvent) KeyEvent.Callback.onKeyMultiple(): always returns false (doesn't handle the event).

OnKeyShortcut(Keycode, KeyEvent)

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

OnKeyUp(Keycode, KeyEvent)

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

OnLocalVoiceInteractionStarted()

Callback to indicate that #startLocalVoiceInteraction(Bundle) has resulted in a voice interaction session being started.

OnLocalVoiceInteractionStopped()

Callback to indicate that the local voice interaction has stopped either because it was requested through a call to #stopLocalVoiceInteraction() or because it was canceled by the user.

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)

Default implementation of android.view.Window.Callback#onMenuItemSelected for activities.

OnMenuOpened(Int32, IMenu)

[TODO: @inheritDoc]

OnMultiWindowModeChanged(Boolean)
Obsolete.

Called by the system when the activity changes from fullscreen mode to multi-window mode and visa-versa.

OnMultiWindowModeChanged(Boolean, Configuration)

Called by the system when the activity changes from fullscreen mode to multi-window mode and visa-versa.

OnNavigateUp()

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

OnNavigateUpFromChild(Activity)
Obsolete.

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

OnNewIntent(Intent)

This is called for activities that set launchMode to "singleTop" in their package, or if a client used the Intent#FLAG_ACTIVITY_SINGLE_TOP flag when calling #startActivity.

OnOptionsItemSelected(IMenuItem)

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

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)

Default implementation of android.view.Window.Callback#onPanelClosed(int, Menu) for activities.

OnPause()

Called as part of the activity lifecycle when the user no longer actively interacts with the activity, but it is still visible on screen.

OnPerformDirectAction(String, Bundle, CancellationSignal, IConsumer)

This is called to perform an action previously defined by the app.

OnPictureInPictureModeChanged(Boolean)
Obsolete.

Called by the system when the activity changes to and from picture-in-picture mode.

OnPictureInPictureModeChanged(Boolean, Configuration)

Called by the system when the activity changes to and from picture-in-picture mode.

OnPictureInPictureRequested()

This method is called by the system in various cases where picture in picture mode should be entered if supported.

OnPictureInPictureUiStateChanged(PictureInPictureUiState)

Called by the system when the activity is in PiP and has state changes.

OnPostCreate(Bundle)

Called when activity start-up is complete (after #onStart and #onRestoreInstanceState have been called).

OnPostCreate(Bundle, PersistableBundle)

This is the same as #onPostCreate(Bundle) but is called for activities created with the attribute android.R.attr#persistableMode set to <code>persistAcrossReboots</code>.

OnPostResume()

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

OnPrepareDialog(Int32, Dialog)
OnPrepareDialog(Int32, Dialog, Bundle)
Obsolete.

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

OnPrepareNavigateUpTaskStack(TaskStackBuilder)

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

OnPrepareOptionsMenu(IMenu)

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

OnPreparePanel(Int32, View, IMenu)

Default implementation of android.view.Window.Callback#onPreparePanel for activities.

OnProvideAssistContent(AssistContent)

This is called when the user is requesting an assist, to provide references to content related to the current activity.

OnProvideAssistData(Bundle)

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

OnProvideKeyboardShortcuts(IList<KeyboardShortcutGroup>, IMenu, Int32)
OnProvideReferrer()

Override to generate the desired referrer for the content currently being shown by the app.

OnRequestPermissionsResult(Int32, String[], Permission[])

Callback for the result from requesting permissions.

OnRestart()

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

OnRestoreInstanceState(Bundle)

This method is called after #onStart when the activity is being re-initialized from a previously saved state, given here in <var>savedInstanceState</var>.

OnRestoreInstanceState(Bundle, PersistableBundle)

This is the same as #onRestoreInstanceState(Bundle) but is called for activities created with the attribute android.R.attr#persistableMode set to <code>persistAcrossReboots</code>.

OnResume()

Called after #onRestoreInstanceState, #onRestart, or #onPause, for your activity to start interacting with the user.

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)

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

OnSaveInstanceState(Bundle, PersistableBundle)

This is the same as #onSaveInstanceState but is called for activities created with the attribute android.R.attr#persistableMode set to <code>persistAcrossReboots</code>.

OnSearchRequested()

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

OnSearchRequested(SearchEvent)

This hook is called when the user signals the desire to start a search.

OnStart()

Called after #onCreate &mdash; or after #onRestart when the activity had been stopped, but is now again being displayed to the user.

OnStateNotSaved()
Obsolete.

Called when an #onResume is coming up, prior to other pre-resume callbacks such as #onNewIntent and #onActivityResult.

OnStop()

Called when you are no longer visible to the user.

OnTitleChanged(ICharSequence, Color)
OnTitleChanged(String, Color)
OnTopResumedActivityChanged(Boolean)

Called when activity gets or loses the top resumed position in the system.

OnTouchEvent(MotionEvent)

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

OnTrackballEvent(MotionEvent)

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

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()

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

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()
Obsolete.

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

OnWindowAttributesChanged(WindowManagerLayoutParams)

This is called whenever the current window attributes change.

OnWindowFocusChanged(Boolean)

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

OnWindowStartingActionMode(ActionMode+ICallback)

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

OnWindowStartingActionMode(ActionMode+ICallback, ActionModeType)

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

OpenContextMenu(View)

Programmatically opens the context menu for a particular view.

OpenFileInput(String)

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

(Inherited from ContextWrapper)
OpenFileOutput(String, FileCreationMode)

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

(Inherited from ContextWrapper)
OpenOptionsMenu()

Programmatically opens the options menu.

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)

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

(Inherited from ContextWrapper)
OverridePendingTransition(Int32, Int32)

Call immediately after one of the flavors of #startActivity(Intent) or #finish to specify an explicit transition animation to perform next.

PeekWallpaper()
Obsolete.
(Inherited from ContextWrapper)
PostponeEnterTransition()

Postpone the entering activity transition when Activity was started with android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[]).

Recreate()

Cause this Activity to be recreated with a new instance.

RegisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks)

Register an Application.ActivityLifecycleCallbacks instance that receives lifecycle callbacks for only this Activity.

RegisterComponentCallbacks(IComponentCallbacks)

Add a new ComponentCallbacks 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)

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

RegisterReceiver(BroadcastReceiver, IntentFilter)

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

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

Register to receive intent broadcasts, to run in the context of scheduler.

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

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

RemoveDialog(Int32)
Obsolete.

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

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

Report to the system that your app is now fully drawn, for diagnostic and optimization purposes.

RequestDragAndDropPermissions(DragEvent)

Create DragAndDropPermissions object bound to this activity and controlling the access permissions for content URIs associated with the DragEvent.

RequestPermissions(String[], Int32)

Requests permissions to be granted to this application.

RequestShowKeyboardShortcuts()

Request the Keyboard Shortcuts screen to show up.

RequestVisibleBehind(Boolean)
Obsolete.

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)

Enable extended window features.

RequireViewById(Int32)

Finds a view that was identified by the android:id XML attribute that was processed in #onCreate, or throws an IllegalArgumentException if the ID is invalid, or there is no matching view in the hierarchy.

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

Remove all permissions to access a particular content provider Uri that were previously added with M:Android.Content.Context.GrantUriPermission(System.String,Android.Net.Uri,Android.Net.Uri).

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

Runs the specified action on the UI thread.

SendBroadcast(Intent)

Broadcast the given intent to all interested BroadcastReceivers.

(Inherited from ContextWrapper)
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)

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

(Inherited from ContextWrapper)
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)
SendBroadcastWithMultiplePermissions(Intent, String[])

Broadcast the given intent to all interested BroadcastReceivers, allowing an array of required permissions to be enforced.

(Inherited from Context)
SendOrderedBroadcast(Intent, Int32, String, String, BroadcastReceiver, Handler, String, Bundle, Bundle) (Inherited from ContextWrapper)
SendOrderedBroadcast(Intent, String) (Inherited from ContextWrapper)
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)
SendOrderedBroadcast(Intent, String, String, BroadcastReceiver, Handler, Result, String, Bundle)

Version of #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle) that allows you to specify the App Op to enforce restrictions on which receivers the broadcast will be sent to.

(Inherited from Context)
SendOrderedBroadcastAsUser(Intent, UserHandle, String, BroadcastReceiver, Handler, Result, String, Bundle) (Inherited from ContextWrapper)
SendStickyBroadcast(Intent)
Obsolete.

Perform a #sendBroadcast(Intent) that is "sticky," meaning the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of #registerReceiver(BroadcastReceiver, IntentFilter).

(Inherited from ContextWrapper)
SendStickyBroadcast(Intent, Bundle)
Obsolete.

Perform a #sendBroadcast(Intent) that is "sticky," meaning the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of #registerReceiver(BroadcastReceiver, IntentFilter).

(Inherited from Context)
SendStickyBroadcastAsUser(Intent, UserHandle)
Obsolete.
(Inherited from ContextWrapper)
SendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, Result, String, Bundle)
Obsolete.
(Inherited from ContextWrapper)
SendStickyOrderedBroadcastAsUser(Intent, UserHandle, BroadcastReceiver, Handler, Result, String, Bundle)
Obsolete.
(Inherited from ContextWrapper)
SetActionBar(Toolbar)

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

SetContentView(Int32)

Set the activity content from a layout resource.

SetContentView(View)

Set the activity content to an explicit view.

SetContentView(View, ViewGroup+LayoutParams)

Set the activity content from a layout resource.

SetDefaultKeyMode(DefaultKey)

Select the default key handling for this activity.

SetEnterSharedElementCallback(SharedElementCallback)

When android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String) was used to start an Activity, <var>callback</var> will be called to handle shared elements on the launched Activity.

SetExitSharedElementCallback(SharedElementCallback)

When android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.view.View, String) was used to start an Activity, <var>callback</var> will be called to handle shared elements on the launching Activity.

SetFeatureDrawable(WindowFeatures, Drawable)

Convenience for calling android.view.Window#setFeatureDrawable(int, Drawable).

SetFeatureDrawableAlpha(WindowFeatures, Int32)

Convenience for calling android.view.Window#setFeatureDrawableAlpha.

SetFeatureDrawableResource(WindowFeatures, Int32)

Convenience for calling android.view.Window#setFeatureDrawableResource.

SetFeatureDrawableUri(WindowFeatures, Uri)

Convenience for calling android.view.Window#setFeatureDrawableUri.

SetFinishOnTouchOutside(Boolean)

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

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInheritShowWhenLocked(Boolean)

Specifies whether this Activity should be shown on top of the lock screen whenever the lockscreen is up and this activity has another activity behind it with the showWhenLock attribute set.

SetLocusContext(LocusId, Bundle)

Sets the android.content.LocusId for this activity.

SetPersistent(Boolean)
SetPictureInPictureParams(PictureInPictureParams)

Updates the properties of the picture-in-picture activity, or sets it to be used later when #enterPictureInPictureMode() is called.

SetProgress(Int32)
Obsolete.

Sets the progress for the progress bars in the title.

SetProgressBarIndeterminate(Boolean)
Obsolete.

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

SetProgressBarIndeterminateVisibility(Boolean)
Obsolete.

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

SetProgressBarVisibility(Boolean)
Obsolete.

Sets the visibility of the progress bar in the title.

SetResult(Result)

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

SetResult(Result, Intent)

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

SetSecondaryProgress(Int32)
Obsolete.

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

SetShowWhenLocked(Boolean)

Specifies whether an Activity should be shown on top of the lock screen whenever the lockscreen is up and the activity is resumed.

SetTaskDescription(ActivityManager+TaskDescription)

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

SetTheme(Int32)

Set the base theme for this context.

(Inherited from ContextWrapper)
SetTheme(Resources+Theme)

Set the configure the current theme.

(Inherited from ContextThemeWrapper)
SetTitle(Int32)

Change the title associated with this activity.

SetTranslucent(Boolean)

Convert an activity, which particularly with android.R.attr#windowIsTranslucent or android.R.attr#windowIsFloating attribute, to a fullscreen opaque activity, or convert it from opaque back to translucent.

SetTurnScreenOn(Boolean)

Specifies whether the screen should be turned on when the Activity is resumed.

SetVisible(Boolean)

Control whether this activity's main window is visible.

SetVrModeEnabled(Boolean, ComponentName)

Enable or disable virtual reality (VR) mode for this Activity.

SetWallpaper(Bitmap)
Obsolete.
(Inherited from ContextWrapper)
SetWallpaper(Stream)
Obsolete.
(Inherited from ContextWrapper)
ShouldShowRequestPermissionRationale(String)

Gets whether you should show UI with rationale before requesting a permission.

ShouldUpRecreateTask(Intent)

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

ShowAssist(Bundle)

Ask to have the current assistant shown to the user.

ShowDialog(Int32)
Obsolete.

Simple version of #showDialog(int, Bundle) that does not take any arguments.

ShowDialog(Int32, Bundle)
Obsolete.

Show a dialog managed by this activity.

ShowLockTaskEscapeMessage()

Shows the user the system defined message for telling the user how to exit lock task mode.

StartActionMode(ActionMode+ICallback)

Start an action mode of the default type ActionMode#TYPE_PRIMARY.

StartActionMode(ActionMode+ICallback, ActionModeType)

Start an action mode of the default type ActionMode#TYPE_PRIMARY.

StartActivities(Intent[])

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

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

Launch multiple new activities.

(Inherited from ContextWrapper)
StartActivity(Intent)

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

(Inherited from ContextWrapper)
StartActivity(Intent, Bundle)

Launch a new activity.

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

Same as calling #startActivityForResult(Intent, int, Bundle) with no options.

StartActivityForResult(Intent, Int32, Bundle)

Same as calling #startActivityForResult(Intent, int, Bundle) with no options.

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

Same as calling M:Android.App.Activity.StartActivityFromChild(Android.App.Activity,Android.Content.Intent,Android.Content.Intent,Android.Content.Intent) with no options.

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

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)
Obsolete.

Same as calling M:Android.App.Activity.StartActivityFromFragment(Android.App.Fragment,Android.Content.Intent,Android.Content.Intent,Android.Content.Intent) with no options.

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

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

StartActivityIfNeeded(Intent, Int32)

Same as calling #startActivityIfNeeded(Intent, int, Bundle) with no options.

StartActivityIfNeeded(Intent, Int32, Bundle)

Same as calling #startActivityIfNeeded(Intent, int, Bundle) with no options.

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

Start executing an Instrumentation class.

(Inherited from ContextWrapper)
StartIntentSender(IntentSender, Intent, ActivityFlags, ActivityFlags, Int32) (Inherited from ContextWrapper)
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)

Same as calling #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) with no options.

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

Same as calling #startIntentSenderForResult(IntentSender, int, Intent, int, int, int, Bundle) with no options.

StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32)
Obsolete.

Same as calling #startIntentSenderFromChild(Activity, IntentSender, int, Intent, int, int, int, Bundle) with no options.

StartIntentSenderFromChild(Activity, IntentSender, Int32, Intent, ActivityFlags, ActivityFlags, Int32, Bundle)
Obsolete.

Like #startActivityFromChild(Activity, Intent, int), but taking a IntentSender; see #startIntentSenderForResult(IntentSender, int, Intent, int, int, int) for more information.

StartLocalVoiceInteraction(Bundle)

Starts a local voice interaction session.

StartLockTask()

Request to put this activity in a mode where the user is locked to a restricted set of applications.

StartManagingCursor(ICursor)
Obsolete.

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

StartNextMatchingActivity(Intent)

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

StartNextMatchingActivity(Intent, Bundle)

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

StartPostponedEnterTransition()

Begin postponed transitions after #postponeEnterTransition() was called.

StartSearch(String, Boolean, Bundle, Boolean)

This hook is called to launch the search UI.

StartService(Intent)

Request that a given application service be started.

(Inherited from ContextWrapper)
StopLocalVoiceInteraction()

Request to terminate the current voice interaction that was previously started using #startLocalVoiceInteraction(Bundle).

StopLockTask()

Stop the current task from being locked.

StopManagingCursor(ICursor)
Obsolete.

Given a Cursor that was previously given to #startManagingCursor, stop the activity's management of that cursor.

StopService(Intent)

Request that a given application service be stopped.

(Inherited from ContextWrapper)
TakeKeyEvents(Boolean)

Request that key events come to this activity.

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

Returns a string representation of the object.

(Inherited from Object)
TriggerSearch(String, Bundle)

Similar to #startSearch, but actually fires off the search query after invoking the search dialog.

UnbindService(IServiceConnection)

Disconnect from an application service.

(Inherited from ContextWrapper)
UnregisterActivityLifecycleCallbacks(Application+IActivityLifecycleCallbacks)

Unregister an Application.ActivityLifecycleCallbacks previously registered with #registerActivityLifecycleCallbacks.

UnregisterComponentCallbacks(IComponentCallbacks)

Remove a ComponentCallbacks object that was previously registered with #registerComponentCallbacks(ComponentCallbacks).

(Inherited from Context)
UnregisterForContextMenu(View)

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

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

Unregister a previously registered BroadcastReceiver.

(Inherited from ContextWrapper)
UpdateServiceGroup(IServiceConnection, Int32, Int32)

For a service previously bound with #bindService or a related method, change how the system manages that service's process in relation to other processes.

(Inherited from Context)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

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

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to