Intent Class

Definition

An intent is an abstract description of an operation to be performed.

[Android.Runtime.Register("android/content/Intent", DoNotGenerateAcw=true)]
public class Intent : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.ICloneable
[<Android.Runtime.Register("android/content/Intent", DoNotGenerateAcw=true)>]
type Intent = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ICloneable
Inheritance
Intent
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

Intent()

Create an empty intent.

Intent(Context, Class)

Create an empty intent.

Intent(Context, Type)
Intent(Intent)

Create an empty intent.

Intent(IntPtr, JniHandleOwnership)

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

Intent(String)

Create an empty intent.

Intent(String, Uri)

Create an empty intent.

Intent(String, Uri, Context, Class)

Create an empty intent.

Intent(String, Uri, Context, Type)

Fields

ActionAirplaneModeChanged

Broadcast Action: The user has switched the phone into or out of Airplane Mode.

ActionAllApps

Activity Action: List all available applications.

ActionAnswer

Activity Action: Handle an incoming phone call.

ActionAppError

Activity Action: The user pressed the "Report" button in the crash/ANR dialog.

ActionApplicationPreferences

An activity that provides a user interface for adjusting application preferences.

ActionApplicationRestrictionsChanged

Broadcast Action: Sent after application restrictions are changed.

ActionAssist

Activity Action: Perform assist action.

ActionAttachData

Used to indicate that some piece of data should be attached to some other place.

ActionAutoRevokePermissions

Activity action: Launch UI to manage auto-revoke state.

ActionBatteryChanged

Broadcast Action: This is a <em>sticky broadcast</em> containing the charging state, level, and other information about the battery.

ActionBatteryLow

Broadcast Action: Indicates low battery condition on the device.

ActionBatteryOkay

Broadcast Action: Indicates the battery is now okay after being low.

ActionBootCompleted

Broadcast Action: This is broadcast once, after the user has finished booting.

ActionBugReport

Activity Action: Show activity for reporting a bug.

ActionCall

Activity Action: Perform a call to someone specified by the data.

ActionCallButton

Activity Action: The user pressed the "call" button to go to the dialer or other appropriate UI for placing a call.

ActionCameraButton

Broadcast Action: The "Camera Button" was pressed.

ActionCarrierSetup

Activity Action: Main entry point for carrier setup apps.

ActionChooser

Activity Action: Display an activity chooser, allowing the user to pick what they want to before proceeding.

ActionCloseSystemDialogs
Obsolete.

Broadcast Action: This is broadcast when a user action should request a temporary system dialog to dismiss.

ActionConfigurationChanged

Broadcast Action: The current device android.content.res.Configuration (orientation, locale, etc) has changed.

ActionCreateDocument

Activity Action: Allow the user to create a new document.

ActionCreateReminder

Activity Action: Creates a reminder.

ActionCreateShortcut

Activity Action: Creates a shortcut.

ActionDateChanged

Broadcast Action: The date has changed.

ActionDefault

A synonym for #ACTION_VIEW, the "standard" action that is performed on a piece of data.

ActionDefine

Activity Action: Define the meaning of the selected word(s).

ActionDelete

Activity Action: Delete the given data from its container.

ActionDeviceStorageLow
Obsolete.

Broadcast Action: A sticky broadcast that indicates low storage space condition on the device <p class="note"> This is a protected intent that can only be sent by the system.

ActionDeviceStorageOk
Obsolete.

Broadcast Action: Indicates low storage space condition on the device no longer exists <p class="note"> This is a protected intent that can only be sent by the system.

ActionDial

Activity Action: Dial a number as specified by the data.

ActionDockEvent

Broadcast Action: A sticky broadcast for changes in the physical docking state of the device.

ActionDreamingStarted

Broadcast Action: Sent after the system starts dreaming.

ActionDreamingStopped

Broadcast Action: Sent after the system stops dreaming.

ActionEdit

Activity Action: Provide explicit editable access to the given data.

ActionExternalApplicationsAvailable

Broadcast Action: Resources for a set of packages (which were previously unavailable) are currently available since the media on which they exist is available.

ActionExternalApplicationsUnavailable

Broadcast Action: Resources for a set of packages are currently unavailable since the media on which they exist is unavailable.

ActionFactoryTest

Activity Action: Main entry point for factory tests.

ActionGetContent

Activity Action: Allow the user to select a particular kind of data and return it.

ActionGetRestrictionEntries

Broadcast to a specific application to query any supported restrictions to impose on restricted users.

ActionGtalkServiceConnected

Broadcast Action: A GTalk connection has been established.

ActionGtalkServiceDisconnected

Broadcast Action: A GTalk connection has been disconnected.

ActionHeadsetPlug

Broadcast Action: Wired Headset plugged in or unplugged.

ActionInputMethodChanged

Broadcast Action: An input method has been changed.

ActionInsert

Activity Action: Insert an empty item into the given container.

ActionInsertOrEdit

Activity Action: Pick an existing item, or insert a new item, and then edit it.

ActionInstallFailure

Activity Action: Activity to handle split installation failures.

ActionInstallPackage
Obsolete.

Activity Action: Launch application installer.

ActionLocaleChanged

Broadcast Action: The current device's locale has changed.

ActionLockedBootCompleted

Broadcast Action: This is broadcast once, after the user has finished booting, but while still in the "locked" state.

ActionMain

Activity Action: Start as a main entry point, does not expect to receive data.

ActionManagedProfileAdded

Broadcast sent to the primary user when an associated managed profile is added (the profile was created and is ready to be used).

ActionManagedProfileAvailable

Broadcast sent to the primary user when an associated managed profile has become available.

ActionManagedProfileRemoved

Broadcast sent to the primary user when an associated managed profile is removed.

ActionManagedProfileUnavailable

Broadcast sent to the primary user when an associated managed profile has become unavailable.

ActionManagedProfileUnlocked

Broadcast sent to the primary user when the credential-encrypted private storage for an associated managed profile is unlocked.

ActionManageNetworkUsage

Activity Action: Show settings for managing network data usage of a specific application.

ActionManagePackageStorage

Broadcast Action: Indicates low memory condition notification acknowledged by user and package management should be started.

ActionManageUnusedApps

Activity action: Launch UI to manage unused apps (hibernated apps).

ActionMediaBadRemoval

Broadcast Action: External media was removed from SD card slot, but mount point was not unmounted.

ActionMediaButton

Broadcast Action: The "Media Button" was pressed.

ActionMediaChecking

Broadcast Action: External media is present, and being disk-checked The path to the mount point for the checking media is contained in the Intent.

ActionMediaEject

Broadcast Action: User has expressed the desire to remove the external storage media.

ActionMediaMounted

Broadcast Action: External media is present and mounted at its mount point.

ActionMediaNofs

Broadcast Action: External media is present, but is using an incompatible fs (or is blank) The path to the mount point for the checking media is contained in the Intent.

ActionMediaRemoved

Broadcast Action: External media has been removed.

ActionMediaScannerFinished

Broadcast Action: The media scanner has finished scanning a directory.

ActionMediaScannerScanFile
Obsolete.

Broadcast Action: Request the media scanner to scan a file and add it to the media database.

ActionMediaScannerStarted

Broadcast Action: The media scanner has started scanning a directory.

ActionMediaShared

Broadcast Action: External media is unmounted because it is being shared via USB mass storage.

ActionMediaUnmountable

Broadcast Action: External media is present but cannot be mounted.

ActionMediaUnmounted

Broadcast Action: External media is present, but not mounted at its mount point.

ActionMyPackageReplaced

Broadcast Action: A new version of your application has been installed over an existing one.

ActionMyPackageSuspended

Broadcast Action: Sent to a package that has been suspended by the system.

ActionMyPackageUnsuspended

Broadcast Action: Sent to a package that has been unsuspended.

ActionNewOutgoingCall
Obsolete.

Broadcast Action: An outgoing call is about to be placed.

ActionOpenDocument

Activity Action: Allow the user to select and return one or more existing documents.

ActionOpenDocumentTree

Activity Action: Allow the user to pick a directory subtree.

ActionPackageAdded

Broadcast Action: A new application package has been installed on the device.

ActionPackageChanged

Broadcast Action: An existing application package has been changed (for example, a component has been enabled or disabled).

ActionPackageDataCleared

Broadcast Action: The user has cleared the data of a package.

ActionPackageFirstLaunch

Broadcast Action: Sent to the installer package of an application when that application is first launched (that is the first time it is moved out of the stopped state).

ActionPackageFullyRemoved

Broadcast Action: An existing application package has been completely removed from the device.

ActionPackageInstall
Obsolete.

Broadcast Action: Trigger the download and eventual installation of a package.

ActionPackageNeedsVerification

Broadcast Action: Sent to the system package verifier when a package needs to be verified.

ActionPackageRemoved

Broadcast Action: An existing application package has been removed from the device.

ActionPackageReplaced

Broadcast Action: A new version of an application package has been installed, replacing an existing version that was previously installed.

ActionPackageRestarted

Broadcast Action: The user has restarted a package, and all of its processes have been killed.

ActionPackagesSuspended

Broadcast Action: Packages have been suspended.

ActionPackagesUnsuspended

Broadcast Action: Packages have been unsuspended.

ActionPackageVerified

Broadcast Action: Sent to the system package verifier when a package is verified.

ActionPaste

Activity Action: Create a new item in the given container, initializing it from the current contents of the clipboard.

ActionPick

Activity Action: Pick an item from the data, returning what was selected.

ActionPickActivity

Activity Action: Pick an activity given an intent, returning the class selected.

ActionPowerConnected

Broadcast Action: External power has been connected to the device.

ActionPowerDisconnected

Broadcast Action: External power has been removed from the device.

ActionPowerUsageSummary

Activity Action: Show power usage information to the user.

ActionProcessText

Activity Action: Process a piece of text.

ActionProfileAccessible

Broadcast sent to the parent user when an associated profile has been started and unlocked.

ActionProfileInaccessible

Broadcast sent to the parent user when an associated profile has stopped.

ActionProviderChanged

Broadcast Action: Some content providers have parts of their namespace where they publish new events or items that the user may be especially interested in.

ActionQuickClock

Sent when the user taps on the clock widget in the system's "quick settings" area.

ActionQuickView

Activity Action: Quick view the data.

ActionReboot

Broadcast Action: Have the device reboot.

ActionRun

Activity Action: Run the data, whatever that means.

ActionScreenOff

Broadcast Action: Sent when the device goes to sleep and becomes non-interactive.

ActionScreenOn

Broadcast Action: Sent when the device wakes up and becomes interactive.

ActionSearch

Activity Action: Perform a search.

ActionSearchLongPress

Activity Action: Start action associated with long pressing on the search key.

ActionSend

Activity Action: Deliver some data to someone else.

ActionSendMultiple

Activity Action: Deliver multiple data to someone else.

ActionSendto

Activity Action: Send a message to someone specified by the data.

ActionSetWallpaper

Activity Action: Show settings for choosing wallpaper.

ActionShowAppInfo

Activity Action: Launch an activity showing the app information.

ActionShutdown

Broadcast Action: Device is shutting down.

ActionSync

Activity Action: Perform a data synchronization.

ActionSystemTutorial

Activity Action: Start the platform-defined tutorial

ActionTimeChanged

Broadcast Action: The time was set.

ActionTimeTick

Broadcast Action: The current time has changed.

ActionTimezoneChanged

Broadcast Action: The timezone has changed.

ActionTranslate

Activity Action: Perform text translation.

ActionUidRemoved

Broadcast Action: A user ID has been removed from the system.

ActionUmsConnected
Obsolete.

Broadcast Action: The device has entered USB Mass Storage mode.

ActionUmsDisconnected
Obsolete.

Broadcast Action: The device has exited USB Mass Storage mode.

ActionUninstallPackage
Obsolete.

Activity Action: Launch application uninstaller.

ActionUserBackground

Sent when a user switch is happening, causing the process's user to be sent to the background.

ActionUserForeground

Sent when a user switch is happening, causing the process's user to be brought to the foreground.

ActionUserInitialize

Sent the first time a user is starting, to allow system apps to perform one time initialization.

ActionUserPresent

Broadcast Action: Sent when the user is present after device wakes up (e.

ActionUserUnlocked

Broadcast Action: Sent when the credential-encrypted private storage has become unlocked for the target user.

ActionView

Activity Action: Display the data to the user.

ActionViewLocus

Activity Action: Display an activity state associated with an unique LocusId.

ActionViewPermissionUsage

Activity action: Launch UI to show information about the usage of a given permission group.

ActionViewPermissionUsageForPeriod

Activity action: Launch UI to show information about the usage of a given permission group in a given period.

ActionVoiceCommand

Activity Action: Start Voice Command.

ActionWallpaperChanged
Obsolete.

Broadcast Action: The current system wallpaper has changed.

ActionWebSearch

Activity Action: Perform a web search.

CategoryAccessibilityShortcutTarget

The accessibility shortcut is a global gesture for users with disabilities to trigger an important for them accessibility feature to help developers determine whether they want to make their activity a shortcut target.

CategoryAlternative

Set if the activity should be considered as an alternative action to the data the user is currently viewing.

CategoryAppBrowser

Used with #ACTION_MAIN to launch the browser application.

CategoryAppCalculator

Used with #ACTION_MAIN to launch the calculator application.

CategoryAppCalendar

Used with #ACTION_MAIN to launch the calendar application.

CategoryAppContacts

Used with #ACTION_MAIN to launch the contacts application.

CategoryAppEmail

Used with #ACTION_MAIN to launch the email application.

CategoryAppFiles

Used with #ACTION_MAIN to launch the files application.

CategoryAppGallery

Used with #ACTION_MAIN to launch the gallery application.

CategoryAppMaps

Used with #ACTION_MAIN to launch the maps application.

CategoryAppMarket

This activity allows the user to browse and download new applications.

CategoryAppMessaging

Used with #ACTION_MAIN to launch the messaging application.

CategoryAppMusic

Used with #ACTION_MAIN to launch the music application.

CategoryBrowsable

Activities that can be safely invoked from a browser must support this category.

CategoryCarDock

An activity to run when device is inserted into a car dock.

CategoryCarMode

Used to indicate that the activity can be used in a car environment.

CategoryDefault

Set if the activity should be an option for the default action (center press) to perform on a piece of data.

CategoryDeskDock

An activity to run when device is inserted into a car dock.

CategoryDevelopmentPreference

This activity is a development preference panel.

CategoryEmbed

Capable of running inside a parent activity container.

CategoryFrameworkInstrumentationTest

To be used as code under test for framework instrumentation tests.

CategoryHeDeskDock

An activity to run when device is inserted into a digital (high end) dock.

CategoryHome

This is the home activity, that is the first activity that is displayed when the device boots.

CategoryInfo

Provides information about the package it is in; typically used if a package does not contain a #CATEGORY_LAUNCHER to provide a front-door to the user without having to be shown in the all apps list.

CategoryLauncher

Should be displayed in the top-level launcher.

CategoryLeanbackLauncher

Indicates an activity optimized for Leanback mode, and that should be displayed in the Leanback launcher.

CategoryLeDeskDock

An activity to run when device is inserted into a analog (low end) dock.

CategoryMonkey

This activity may be exercised by the monkey or other automated test tools.

CategoryOpenable

Used to indicate that an intent only wants URIs that can be opened with ContentResolver#openFileDescriptor(Uri, String).

CategoryPreference

This activity is a preference panel.

CategorySampleCode

To be used as a sample code example (not part of the normal user experience).

CategorySecondaryHome

The home activity shown on secondary displays that support showing home activities.

CategorySelectedAlternative

Set if the activity should be considered as an alternative selection action to the data the user has currently selected.

CategoryTab

Intended to be used as a tab inside of a containing TabActivity.

CategoryTest

To be used as a test (not part of the normal user experience).

CategoryTypedOpenable

Used to indicate that an intent filter can accept files which are not necessarily openable by ContentResolver#openFileDescriptor(Uri, String), but at least streamable via ContentResolver#openTypedAssetFileDescriptor(Uri, String, Bundle) using one of the stream types exposed via ContentResolver#getStreamTypes(Uri, String).

CategoryUnitTest

To be used as a unit test (run through the Test Harness).

CategoryVoice

Categories for activities that can participate in voice interaction.

CategoryVrHome

An activity to use for the launcher when the device is placed in a VR Headset viewer.

ExtraAlarmCount

Used as an int extra field in android.app.AlarmManager pending intents to tell the application being invoked how many pending alarms are being delivered with the intent.

ExtraAllowMultiple

Extra used to indicate that an intent can allow the user to select and return multiple items.

ExtraAllowReplace
Obsolete.

Used as a boolean extra field with #ACTION_INSTALL_PACKAGE to install a package.

ExtraAlternateIntents

An Intent[] describing additional, alternate choices you would like shown with #ACTION_CHOOSER.

ExtraAssistContext

An optional field on #ACTION_ASSIST and containing additional contextual information supplied by the current foreground app at the time of the assist request.

ExtraAssistInputDeviceId

An optional field on #ACTION_ASSIST containing the InputDevice id that was used to invoke the assist.

ExtraAssistInputHintKeyboard

An optional field on #ACTION_ASSIST suggesting that the user will likely use a keyboard as the primary input device for assistance.

ExtraAssistPackage

An optional field on #ACTION_ASSIST containing the name of the current foreground application package at the time the assist was invoked.

ExtraAssistUid

An optional field on #ACTION_ASSIST containing the uid of the current foreground application package at the time the assist was invoked.

ExtraAttributionTags

A String[] holding attribution tags when used with #ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD

        E.
ExtraAutoLaunchSingleChoice

Used as a boolean extra field in #ACTION_CHOOSER intents to specify whether to show the chooser or not when there is only one application available to choose from.

ExtraBcc

A String[] holding e-mail addresses that should be blind carbon copied.

ExtraBugReport

Used as a parcelable extra field in #ACTION_APP_ERROR, containing the bug report.

ExtraCc

A String[] holding e-mail addresses that should be carbon copied.

ExtraChangedComponentName
ExtraChangedComponentNameList

This field is part of android.content.Intent#ACTION_PACKAGE_CHANGED, and contains a string array of all of the components that have changed.

ExtraChangedPackageList

This field is part of android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE, android.content.Intent#ACTION_PACKAGES_SUSPENDED, android.content.Intent#ACTION_PACKAGES_UNSUSPENDED and contains a string array of all of the components that have changed.

ExtraChangedUidList

This field is part of android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE, android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE and contains an integer array of uids of all of the components that have changed.

ExtraChooserRefinementIntentSender

An IntentSender for an Activity that will be invoked when the user makes a selection from the chooser activity presented by #ACTION_CHOOSER.

ExtraChooserTargets

A android.service.chooser.ChooserTarget ChooserTarget[] for #ACTION_CHOOSER describing additional high-priority deep-link targets for the chooser to present to the user.

ExtraChosenComponent

The ComponentName chosen by the user to complete an action.

ExtraChosenComponentIntentSender

An IntentSender that will be notified if a user successfully chooses a target component to handle an action in an #ACTION_CHOOSER activity.

ExtraComponentName

Intent extra: A ComponentName value.

ExtraContentAnnotations

An ArrayList of String annotations describing content for #ACTION_CHOOSER.

ExtraContentQuery

Optional CharSequence extra to provide a search query.

ExtraDataRemoved

Used as a boolean extra field in android.content.Intent#ACTION_PACKAGE_REMOVED intents to indicate whether this represents a full uninstall (removing both the code and its data) or a partial uninstall (leaving its data, implying that this is an update).

ExtraDockState

Used as an int extra field in android.content.Intent#ACTION_DOCK_EVENT intents to request the dock state.

ExtraDontKillApp

Used as a boolean extra field in android.content.Intent#ACTION_PACKAGE_REMOVED or android.content.Intent#ACTION_PACKAGE_CHANGED intents to override the default action of restarting the application.

ExtraDurationMillis

Intent extra: The number of milliseconds.

ExtraEmail

A String[] holding e-mail addresses that should be delivered to.

ExtraEndTime

A long representing the end timestamp (epoch time in millis) of the permission usage when used with #ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD

ExtraExcludeComponents

A ComponentName ComponentName[] describing components that should be filtered out and omitted from a list of components presented to the user.

ExtraFromStorage

Extra that can be included on activity intents coming from the storage UI when it launches sub-activities to manage various types of storage.

ExtraHtmlText

A constant String that is associated with the Intent, used with #ACTION_SEND to supply an alternative to #EXTRA_TEXT as HTML formatted text.

ExtraIndex

Optional index with semantics depending on the intent action.

ExtraInitialIntents

A Parcelable[] of Intent or android.content.pm.LabeledIntent objects as set with #putExtra(String, Parcelable[]) of additional activities to place a the front of the list of choices, when shown to the user with a #ACTION_CHOOSER.

ExtraInstallerPackageName

Used as a string extra field with #ACTION_INSTALL_PACKAGE to install a package.

ExtraIntent

An Intent describing the choices you would like shown with #ACTION_PICK_ACTIVITY or #ACTION_CHOOSER.

ExtraKeyEvent

A android.view.KeyEvent object containing the event that triggered the creation of the Intent it is in.

ExtraLocalOnly

Extra used to indicate that an intent should only return data that is on the local device.

ExtraLocusId

Intent extra: ID of the context used on #ACTION_VIEW_LOCUS.

ExtraMimeTypes

Extra used to communicate a set of acceptable MIME types.

ExtraNotUnknownSource

Used as a boolean extra field with #ACTION_INSTALL_PACKAGE to install a package.

ExtraOriginatingUri

Used as a URI extra field with #ACTION_INSTALL_PACKAGE and #ACTION_VIEW to indicate the URI from which the local APK in the Intent data field originated from.

ExtraPackageName

Intent extra: An app package name.

ExtraPermissionGroupName

Intent extra: The name of a permission group.

ExtraPhoneNumber

A String holding the phone number originally entered in android.content.Intent#ACTION_NEW_OUTGOING_CALL, or the actual number to call in a android.content.Intent#ACTION_CALL.

ExtraProcessText

The name of the extra used to define the text to be processed, as a CharSequence.

ExtraProcessTextReadonly

The name of the boolean extra used to define if the processed text will be used as read-only.

ExtraQuickViewFeatures

An optional extra of String[] indicating which quick view features should be made available to the user in the quick view UI while handing a Intent#ACTION_QUICK_VIEW intent.

ExtraQuietMode

Optional boolean extra indicating whether quiet mode has been switched on or off.

ExtraReferrer

This extra can be used with any Intent used to launch an activity, supplying information about who is launching that activity.

ExtraReferrerName

Alternate version of #EXTRA_REFERRER that supplies the URI as a String rather than a android.net.Uri object.

ExtraRemoteIntentToken

Used in the extra field in the remote intent.

ExtraReplacementExtras

A Bundle forming a mapping of potential target package names to different extras Bundles to add to the default intent extras in #EXTRA_INTENT when used with #ACTION_CHOOSER.

ExtraReplacing

Used as a boolean extra field in android.content.Intent#ACTION_PACKAGE_REMOVED intents to indicate that this is a replacement of the package, so this broadcast will immediately be followed by an add broadcast for a different version of the same package.

ExtraRestrictionsBundle

Extra sent in the intent to the BroadcastReceiver that handles #ACTION_GET_RESTRICTION_ENTRIES.

ExtraRestrictionsIntent

Extra used in the response from a BroadcastReceiver that handles #ACTION_GET_RESTRICTION_ENTRIES.

ExtraRestrictionsList

Extra used in the response from a BroadcastReceiver that handles #ACTION_GET_RESTRICTION_ENTRIES.

ExtraResultReceiver

A ResultReceiver used to return data back to the sender.

ExtraReturnResult

Used as a boolean extra field with #ACTION_INSTALL_PACKAGE or #ACTION_UNINSTALL_PACKAGE.

ExtraShortcutIcon
Obsolete.

The name of the extra used to define the icon, as a Bitmap, of a shortcut.

ExtraShortcutIconResource
Obsolete.

The name of the extra used to define the icon, as a ShortcutIconResource, of a shortcut.

ExtraShortcutId

Intent extra: ID of the shortcut used to send the share intent.

ExtraShortcutIntent
Obsolete.

The name of the extra used to define the Intent of a shortcut.

ExtraShortcutName
Obsolete.

The name of the extra used to define the name of a shortcut.

ExtraShutdownUserspaceOnly

Optional extra for #ACTION_SHUTDOWN that allows the sender to qualify that this shutdown is only for the user space of the system, not a complete shutdown.

ExtraSplitName

Intent extra: An app split name.

ExtraStartTime

A long representing the start timestamp (epoch time in millis) of the permission usage when used with #ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD

ExtraStream

A content: URI holding a stream of data associated with the Intent, used with #ACTION_SEND to supply the data being sent.

ExtraSubject

A constant string holding the desired subject line of a message.

ExtraSuspendedPackageExtras

Intent extra: A Bundle of extras for a package being suspended.

ExtraTemplate

The initial data to place in a newly created record.

ExtraText

A constant CharSequence that is associated with the Intent, used with #ACTION_SEND to supply the literal data to be sent.

ExtraTime

Optional extra specifying a time in milliseconds since the Epoch.

ExtraTimezone

Extra sent with #ACTION_TIMEZONE_CHANGED specifying the new time zone of the device.

ExtraTitle

A CharSequence dialog title to provide to the user when used with a #ACTION_CHOOSER.

ExtraUid

Used as an int extra field in android.content.Intent#ACTION_UID_REMOVED intents to supply the uid the package had been assigned.

ExtraUser

The UserHandle carried with intents.

ExtraUserInitiated

Used as a boolean extra field in android.content.Intent#ACTION_PACKAGE_REMOVED intents to signal that the application was removed with the user-initiated action.

FlagActivityRequireDefault
Obsolete.

If set in an intent passed to Context#startActivity Context.startActivity(), this flag will only launch the intent if it resolves to a single result.

FlagActivityRequireNonBrowser
Obsolete.

If set in an intent passed to Context#startActivity Context.startActivity(), this flag will only launch the intent if it resolves to a result that is not a browser.

MetadataDockHome

Boolean that can be supplied as meta-data with a dock activity, to indicate that the dock should take over the home key when it is active.

UriAllowUnsafe
Obsolete.

Flag for use with #toUri and #parseUri: allow parsing of unsafe information.

UriAndroidAppScheme
UriIntentScheme
Obsolete.

Flag for use with #toUri and #parseUri: the URI string always has the "intent:" scheme.

Properties

Action

Retrieve the general action to be performed, such as #ACTION_VIEW.

Categories

Return the set of all categories in the intent.

Class

Returns the runtime class of this Object.

(Inherited from Object)
ClipData

Return the ClipData associated with this Intent. -or- Set a ClipData associated with this Intent.

Component

Retrieve the concrete component associated with the intent.

Creator
Data

Retrieve data this intent is operating on.

DataString

The same as #getData(), but returns the URI as an encoded String.

Extras

Retrieves a map of extended data from the intent.

Flags

Retrieve any special flags associated with this intent.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasFileDescriptors

Returns true if the Intent's extras contain a parcelled file descriptor.

Identifier

Retrieve the identifier for this Intent.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Package

Retrieve the application package name this Intent is limited to.

PeerReference (Inherited from Object)
Scheme

Return the scheme portion of the intent's data.

Selector

Return the specific selector associated with this Intent. -or- Set a selector for this Intent.

SourceBounds

Get the bounds of the sender of this intent, in screen coordinates. -or- Set the bounds of the sender of this intent, in screen coordinates.

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.

Type

Retrieve any explicit MIME type included in the intent.

Methods

AddCategory(String)

Add a new category to the intent.

AddFlags(ActivityFlags)

Add additional flags to the intent (or with existing flags value).

Clone()

Creates and returns a copy of this Object.

CloneFilter()

Make a clone of only the parts of the Intent that are relevant for filter matching: the action, data, type, component, and categories.

CreateChooser(Intent, ICharSequence)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, ICharSequence, IntentSender)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, String)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, String, IntentSender)

Convenience function for creating a #ACTION_CHOOSER Intent.

DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

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

(Inherited from Object)
FillIn(Intent, FillInFlags)

Copy the contents of other in to this object, but only where fields are not defined by this object.

FilterEquals(Intent)

Determine if two intents are the same for the purposes of intent resolution (filtering).

FilterHashCode()

Generate hash code that matches semantics of filterEquals().

GetBooleanArrayExtra(String)

Retrieve extended data from the intent.

GetBooleanExtra(String, Boolean)

Retrieve extended data from the intent.

GetBundleExtra(String)

Retrieve extended data from the intent.

GetByteArrayExtra(String)

Retrieve extended data from the intent.

GetByteExtra(String, SByte)

Retrieve extended data from the intent.

GetCharArrayExtra(String)

Retrieve extended data from the intent.

GetCharExtra(String, Char)

Retrieve extended data from the intent.

GetCharSequenceArrayExtra(String)

Retrieve extended data from the intent.

GetCharSequenceArrayExtraFormatted(String)

Retrieve extended data from the intent.

GetCharSequenceArrayListExtra(String)

Retrieve extended data from the intent.

GetCharSequenceExtra(String)

Retrieve extended data from the intent.

GetCharSequenceExtraFormatted(String)

Retrieve extended data from the intent.

GetDoubleArrayExtra(String)

Retrieve extended data from the intent.

GetDoubleExtra(String, Double)

Retrieve extended data from the intent.

GetFloatArrayExtra(String)

Retrieve extended data from the intent.

GetFloatExtra(String, Single)

Retrieve extended data from the intent.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIntArrayExtra(String)

Retrieve extended data from the intent.

GetIntegerArrayListExtra(String)

Retrieve extended data from the intent.

GetIntent(String)
Obsolete.

Call #parseUri with 0 flags.

GetIntentOld(String)
GetIntExtra(String, Int32)

Retrieve extended data from the intent.

GetLongArrayExtra(String)

Retrieve extended data from the intent.

GetLongExtra(String, Int64)

Retrieve extended data from the intent.

GetParcelableArrayExtra(String)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String)

Retrieve extended data from the intent.

GetParcelableExtra(String)

Retrieve extended data from the intent.

GetSerializableExtra(String)

Retrieve extended data from the intent.

GetShortArrayExtra(String)

Retrieve extended data from the intent.

GetShortExtra(String, Int16)

Retrieve extended data from the intent.

GetStringArrayExtra(String)

Retrieve extended data from the intent.

GetStringArrayListExtra(String)

Retrieve extended data from the intent.

GetStringExtra(String)

Retrieve extended data from the intent.

HasCategory(String)

Check if a category exists in the intent.

HasExtra(String)

Returns true if an extra value is associated with the given name.

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

Create an intent to launch the main (root) activity of a task.

MakeMainSelectorActivity(String, String)

Make an Intent for the main activity of an application, without specifying a specific activity to run but giving a selector to find the activity.

MakeRestartActivityTask(ComponentName)

Make an Intent that can be used to re-launch an application's task in its base state.

NormalizeMimeType(String)

Normalize a MIME data type.

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)
ParseIntent(Resources, XmlReader, IAttributeSet)

Parses the "intent" element (and its children) from XML and instantiates an Intent object.

ParseUri(String, IntentUriType)

Create an intent from a URI.

PutCharSequenceArrayListExtra(String, IList<ICharSequence>)

Add extended data to the intent.

PutExtra(String, Boolean)

Add extended data to the intent.

PutExtra(String, Boolean[])

Add extended data to the intent.

PutExtra(String, Bundle)

Add extended data to the intent.

PutExtra(String, Byte[])

Add extended data to the intent.

PutExtra(String, Char)

Add extended data to the intent.

PutExtra(String, Char[])

Add extended data to the intent.

PutExtra(String, Double)

Add extended data to the intent.

PutExtra(String, Double[])

Add extended data to the intent.

PutExtra(String, ICharSequence)

Add extended data to the intent.

PutExtra(String, ICharSequence[])

Add extended data to the intent.

PutExtra(String, Int16)

Add extended data to the intent.

PutExtra(String, Int16[])

Add extended data to the intent.

PutExtra(String, Int32)

Add extended data to the intent.

PutExtra(String, Int32[])

Add extended data to the intent.

PutExtra(String, Int64)

Add extended data to the intent.

PutExtra(String, Int64[])

Add extended data to the intent.

PutExtra(String, IParcelable)

Add extended data to the intent.

PutExtra(String, IParcelable[])

Add extended data to the intent.

PutExtra(String, ISerializable)

Add extended data to the intent.

PutExtra(String, SByte)

Add extended data to the intent.

PutExtra(String, Single)

Add extended data to the intent.

PutExtra(String, Single[])

Add extended data to the intent.

PutExtra(String, String)

Add extended data to the intent.

PutExtra(String, String[])

Add extended data to the intent.

PutExtras(Bundle)

Copy all extras in 'src' in to this intent.

PutExtras(Intent)

Copy all extras in 'src' in to this intent.

PutIntegerArrayListExtra(String, IList<Integer>)

Add extended data to the intent.

PutParcelableArrayListExtra(String, IList<IParcelable>)

Add extended data to the intent.

PutStringArrayListExtra(String, IList<String>)

Add extended data to the intent.

ReadFromParcel(Parcel)
RemoveCategory(String)

Remove a category from an intent.

RemoveExtra(String)

Remove extended data from the intent.

RemoveFlags(ActivityFlags)

Remove these flags from the intent.

ReplaceExtras(Bundle)

Completely replace the extras in the Intent with the extras in the given Intent.

ReplaceExtras(Intent)

Completely replace the extras in the Intent with the extras in the given Intent.

ResolveActivity(PackageManager)

Return the Activity component that should be used to handle this intent.

ResolveActivityInfo(PackageManager, PackageInfoFlags)

Resolve the Intent into an ActivityInfo describing the activity that should execute the intent.

ResolveType(ContentResolver)

Return the MIME data type of this intent.

ResolveType(Context)

Return the MIME data type of this intent.

ResolveTypeIfNeeded(ContentResolver)

Return the MIME data type of this intent, only if it will be needed for intent resolution.

SetAction(String)

Set the general action to be performed.

SetClass(Context, Class)

Convenience for calling #setComponent(ComponentName) with the name returned by a Class object.

SetClass(Context, Type)
SetClassName(Context, String)

Convenience for calling #setComponent with an explicit class name.

SetClassName(String, String)

Convenience for calling #setComponent with an explicit class name.

SetComponent(ComponentName)

(Usually optional) Explicitly set the component to handle the intent.

SetData(Uri)

Set the data this intent is operating on.

SetDataAndNormalize(Uri)

Normalize and set the data this intent is operating on.

SetDataAndType(Uri, String)

(Usually optional) Set the data for the intent along with an explicit MIME data type.

SetDataAndTypeAndNormalize(Uri, String)

(Usually optional) Normalize and set both the data Uri and an explicit MIME data type.

SetExtrasClassLoader(ClassLoader)

Sets the ClassLoader that will be used when unmarshalling any Parcelable values from the extras of this Intent.

SetFlags(ActivityFlags)

Set special flags controlling how this intent is handled.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetIdentifier(String)

Set an identifier for this Intent.

SetPackage(String)

(Usually optional) Set an explicit application package name that limits the components this Intent will resolve to.

SetType(String)

Set an explicit MIME data type.

SetTypeAndNormalize(String)

Normalize and set an explicit MIME data type.

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

Returns a string representation of the object.

(Inherited from Object)
ToURI()
Obsolete.

Call #toUri with 0 flags.

ToUri(IntentUriType)

Convert this Intent into a String holding a URI representation of it.

UnregisterFromRuntime() (Inherited from Object)
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 another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

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

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

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