Intent Intent Class

Definition

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

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

Intent() Intent()

Create an empty intent.

Intent(Context, Class) Intent(Context, Class)
Intent(Context, Type) Intent(Context, Type)
Intent(Intent) Intent(Intent)

Copy constructor.

Intent(IntPtr, JniHandleOwnership) Intent(IntPtr, JniHandleOwnership)

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

Intent(String) Intent(String)

Create an intent with a given action.

Intent(String, Uri) Intent(String, Uri)

Create an intent with a given action and for a given data url.

Intent(String, Uri, Context, Class) Intent(String, Uri, Context, Class)
Intent(String, Uri, Context, Type) Intent(String, Uri, Context, Type)

Fields

ActionAirplaneModeChanged ActionAirplaneModeChanged
ActionAllApps ActionAllApps

Activity Action: List all available applications

ActionAnswer ActionAnswer

Activity Action: Handle an incoming phone call.

ActionAppError ActionAppError

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

ActionApplicationPreferences ActionApplicationPreferences
ActionApplicationRestrictionsChanged ActionApplicationRestrictionsChanged

Broadcast Action: Sent after application restrictions are changed.

ActionAssist ActionAssist

Activity Action: Perform assist action.

ActionAttachData ActionAttachData

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

ActionBatteryChanged ActionBatteryChanged

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

ActionBatteryLow ActionBatteryLow

Broadcast Action: Indicates low battery condition on the device.

ActionBatteryOkay ActionBatteryOkay

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

ActionBootCompleted ActionBootCompleted

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

ActionBugReport ActionBugReport

Activity Action: Show activity for reporting a bug.

ActionCall ActionCall

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

ActionCallButton ActionCallButton

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

ActionCameraButton ActionCameraButton

Broadcast Action: The "Camera Button" was pressed.

ActionCarrierSetup ActionCarrierSetup
ActionChooser ActionChooser

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

ActionCloseSystemDialogs ActionCloseSystemDialogs

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

ActionConfigurationChanged ActionConfigurationChanged

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

ActionCreateDocument ActionCreateDocument

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

ActionCreateShortcut ActionCreateShortcut

Activity Action: Creates a shortcut.

ActionDateChanged ActionDateChanged

Broadcast Action: The date has changed.

ActionDefault ActionDefault

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

ActionDelete ActionDelete

Activity Action: Delete the given data from its container.

ActionDeviceStorageLow ActionDeviceStorageLow

Broadcast Action: A sticky broadcast that indicates low memory condition on the device

ActionDeviceStorageOk ActionDeviceStorageOk

Broadcast Action: Indicates low memory condition on the device no longer exists

ActionDial ActionDial

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

ActionDockEvent ActionDockEvent

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

ActionDreamingStarted ActionDreamingStarted

Broadcast Action: Sent after the system starts dreaming.

ActionDreamingStopped ActionDreamingStopped

Broadcast Action: Sent after the system stops dreaming.

ActionEdit ActionEdit

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

ActionExternalApplicationsAvailable 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 ActionExternalApplicationsUnavailable

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

ActionFactoryTest ActionFactoryTest

Activity Action: Main entry point for factory tests.

ActionGetContent ActionGetContent

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

ActionGetRestrictionEntries ActionGetRestrictionEntries

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

ActionGtalkServiceConnected ActionGtalkServiceConnected

Broadcast Action: A GTalk connection has been established.

ActionGtalkServiceDisconnected ActionGtalkServiceDisconnected

Broadcast Action: A GTalk connection has been disconnected.

ActionHeadsetPlug ActionHeadsetPlug

Broadcast Action: Wired Headset plugged in or unplugged.

ActionInputMethodChanged ActionInputMethodChanged

Broadcast Action: An input method has been changed.

ActionInsert ActionInsert

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

ActionInsertOrEdit ActionInsertOrEdit

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

ActionInstallFailure ActionInstallFailure
ActionInstallPackage ActionInstallPackage

Activity Action: Launch application installer.

ActionLocaleChanged ActionLocaleChanged

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

ActionLockedBootCompleted ActionLockedBootCompleted
ActionMain ActionMain

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

ActionManagedProfileAdded 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 ActionManagedProfileAvailable
ActionManagedProfileRemoved ActionManagedProfileRemoved

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

ActionManagedProfileUnavailable ActionManagedProfileUnavailable
ActionManagedProfileUnlocked ActionManagedProfileUnlocked
ActionManageNetworkUsage ActionManageNetworkUsage

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

ActionManagePackageStorage ActionManagePackageStorage

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

ActionMediaBadRemoval ActionMediaBadRemoval

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

ActionMediaButton ActionMediaButton

Broadcast Action: The "Media Button" was pressed.

ActionMediaChecking 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.mData field.

ActionMediaEject ActionMediaEject

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

ActionMediaMounted ActionMediaMounted

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

ActionMediaNofs 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.mData field.

ActionMediaRemoved ActionMediaRemoved

Broadcast Action: External media has been removed.

ActionMediaScannerFinished ActionMediaScannerFinished

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

ActionMediaScannerScanFile ActionMediaScannerScanFile

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

ActionMediaScannerStarted ActionMediaScannerStarted

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

ActionMediaShared ActionMediaShared

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

ActionMediaUnmountable ActionMediaUnmountable

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

ActionMediaUnmounted ActionMediaUnmounted

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

ActionMyPackageReplaced ActionMyPackageReplaced

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

ActionNewOutgoingCall ActionNewOutgoingCall

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

ActionOpenDocument ActionOpenDocument

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

ActionOpenDocumentTree ActionOpenDocumentTree

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

ActionPackageAdded ActionPackageAdded

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

ActionPackageChanged ActionPackageChanged

Broadcast Action: An existing application package has been changed (e.g. a component has been enabled or disabled).

ActionPackageDataCleared ActionPackageDataCleared

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

ActionPackageFirstLaunch 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 ActionPackageFullyRemoved

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

ActionPackageInstall ActionPackageInstall

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

ActionPackageNeedsVerification ActionPackageNeedsVerification

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

ActionPackageRemoved ActionPackageRemoved

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

ActionPackageReplaced ActionPackageReplaced

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

ActionPackageRestarted ActionPackageRestarted

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

ActionPackagesSuspended ActionPackagesSuspended
ActionPackagesUnsuspended ActionPackagesUnsuspended
ActionPackageVerified ActionPackageVerified

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

ActionPaste ActionPaste

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

ActionPick ActionPick

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

ActionPickActivity ActionPickActivity

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

ActionPowerConnected ActionPowerConnected

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

ActionPowerDisconnected ActionPowerDisconnected

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

ActionPowerUsageSummary ActionPowerUsageSummary

Activity Action: Show power usage information to the user.

ActionProcessText ActionProcessText
ActionProviderChanged 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 ActionQuickClock

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

ActionQuickView ActionQuickView
ActionReboot ActionReboot

Broadcast Action: Have the device reboot.

ActionRun ActionRun

Activity Action: Run the data, whatever that means.

ActionScreenOff ActionScreenOff

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

ActionScreenOn ActionScreenOn

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

ActionSearch ActionSearch

Activity Action: Perform a search.

ActionSearchLongPress ActionSearchLongPress

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

ActionSend ActionSend

Activity Action: Deliver some data to someone else.

ActionSendMultiple ActionSendMultiple

Activity Action: Deliver multiple data to someone else.

ActionSendto ActionSendto

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

ActionSetWallpaper ActionSetWallpaper

Activity Action: Show settings for choosing wallpaper

ActionShowAppInfo ActionShowAppInfo
ActionShutdown ActionShutdown

Broadcast Action: Device is shutting down.

ActionSync ActionSync

Activity Action: Perform a data synchronization.

ActionSystemTutorial ActionSystemTutorial

Activity Action: Start the platform-defined tutorial

ActionTimeChanged ActionTimeChanged

Broadcast Action: The time was set.

ActionTimeTick ActionTimeTick

Broadcast Action: The current time has changed.

ActionTimezoneChanged ActionTimezoneChanged

Broadcast Action: The timezone has changed.

ActionUidRemoved ActionUidRemoved

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

ActionUmsConnected ActionUmsConnected

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

ActionUmsDisconnected ActionUmsDisconnected

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

ActionUninstallPackage ActionUninstallPackage

Activity Action: Launch application uninstaller.

ActionUserBackground ActionUserBackground

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

ActionUserForeground ActionUserForeground

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

ActionUserInitialize ActionUserInitialize

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

ActionUserPresent ActionUserPresent

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

ActionUserUnlocked ActionUserUnlocked
ActionView ActionView

Activity Action: Display the data to the user.

ActionVoiceCommand ActionVoiceCommand

Activity Action: Start Voice Command.

ActionWallpaperChanged ActionWallpaperChanged

Broadcast Action: The current system wallpaper has changed.

ActionWebSearch ActionWebSearch

Activity Action: Perform a web search.

CategoryAlternative CategoryAlternative

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

CategoryAppBrowser CategoryAppBrowser

Used with ActionMain to launch the browser application.

CategoryAppCalculator CategoryAppCalculator

Used with ActionMain to launch the calculator application.

CategoryAppCalendar CategoryAppCalendar

Used with ActionMain to launch the calendar application.

CategoryAppContacts CategoryAppContacts

Used with ActionMain to launch the contacts application.

CategoryAppEmail CategoryAppEmail

Used with ActionMain to launch the email application.

CategoryAppGallery CategoryAppGallery

Used with ActionMain to launch the gallery application.

CategoryAppMaps CategoryAppMaps

Used with ActionMain to launch the maps application.

CategoryAppMarket CategoryAppMarket

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

CategoryAppMessaging CategoryAppMessaging

Used with ActionMain to launch the messaging application.

CategoryAppMusic CategoryAppMusic

Used with ActionMain to launch the music application.

CategoryBrowsable CategoryBrowsable

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

CategoryCarDock CategoryCarDock

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

CategoryCarMode CategoryCarMode

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

CategoryDefault CategoryDefault

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

CategoryDeskDock CategoryDeskDock

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

CategoryDevelopmentPreference CategoryDevelopmentPreference

This activity is a development preference panel.

CategoryEmbed CategoryEmbed

Capable of running inside a parent activity container.

CategoryFrameworkInstrumentationTest CategoryFrameworkInstrumentationTest

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

CategoryHeDeskDock CategoryHeDeskDock

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

CategoryHome CategoryHome

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

CategoryInfo CategoryInfo

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

CategoryLauncher CategoryLauncher

Should be displayed in the top-level launcher.

CategoryLeanbackLauncher CategoryLeanbackLauncher

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

CategoryLeDeskDock CategoryLeDeskDock

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

CategoryMonkey CategoryMonkey

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

CategoryOpenable CategoryOpenable

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

CategoryPreference CategoryPreference

This activity is a preference panel.

CategorySampleCode CategorySampleCode

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

CategorySelectedAlternative CategorySelectedAlternative

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

CategoryTab CategoryTab

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

CategoryTest CategoryTest

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

CategoryTypedOpenable CategoryTypedOpenable
CategoryUnitTest CategoryUnitTest

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

CategoryVoice CategoryVoice
CategoryVrHome CategoryVrHome
ExtraAlarmCount ExtraAlarmCount

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

ExtraAllowMultiple ExtraAllowMultiple

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

ExtraAllowReplace ExtraAllowReplace

Used as a boolean extra field with ActionInstallPackage to install a package.

ExtraAlternateIntents ExtraAlternateIntents
ExtraAssistContext ExtraAssistContext

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

ExtraAssistInputDeviceId ExtraAssistInputDeviceId
ExtraAssistInputHintKeyboard ExtraAssistInputHintKeyboard

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

ExtraAssistPackage ExtraAssistPackage

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

ExtraAssistUid ExtraAssistUid
ExtraBcc ExtraBcc

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

ExtraBugReport ExtraBugReport

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

ExtraCc ExtraCc

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

ExtraChangedComponentName ExtraChangedComponentName
ExtraChangedComponentNameList ExtraChangedComponentNameList

This field is part of ActionPackageChanged, and contains a string array of all of the components that have changed.

ExtraChangedPackageList ExtraChangedPackageList

This field is part of ActionExternalApplicationsAvailable, ActionExternalApplicationsUnavailable and contains a string array of all of the components that have changed.

ExtraChangedUidList ExtraChangedUidList

This field is part of ActionExternalApplicationsAvailable, ActionExternalApplicationsUnavailable and contains an integer array of uids of all of the components that have changed.

ExtraChooserRefinementIntentSender ExtraChooserRefinementIntentSender
ExtraChooserTargets ExtraChooserTargets
ExtraChosenComponent ExtraChosenComponent
ExtraChosenComponentIntentSender ExtraChosenComponentIntentSender
ExtraComponentName ExtraComponentName
ExtraContentAnnotations ExtraContentAnnotations
ExtraDataRemoved ExtraDataRemoved
ExtraDockState ExtraDockState

Used as an int extra field in ActionDockEvent intents to request the dock state.

ExtraDontKillApp ExtraDontKillApp

Used as a boolean extra field in ActionPackageRemoved or ActionPackageChanged intents to override the default action of restarting the application.

ExtraEmail ExtraEmail

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

ExtraExcludeComponents ExtraExcludeComponents
ExtraFromStorage ExtraFromStorage
ExtraHtmlText ExtraHtmlText

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

ExtraIndex ExtraIndex
ExtraInitialIntents ExtraInitialIntents

A Parcelable[] of Intent or LabeledIntent objects as set with PutExtra(String, IParcelable[]) of additional activities to place a the front of the list of choices, when shown to the user with a ActionChooser.

ExtraInstallerPackageName ExtraInstallerPackageName

Used as a string extra field with ActionInstallPackage to install a package.

ExtraIntent ExtraIntent

An Intent describing the choices you would like shown with ActionPickActivity or ActionChooser.

ExtraKeyEvent ExtraKeyEvent

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

ExtraLocalOnly ExtraLocalOnly

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

ExtraMimeTypes ExtraMimeTypes

Extra used to communicate a set of acceptable MIME types.

ExtraNotUnknownSource ExtraNotUnknownSource

Used as a boolean extra field with ActionInstallPackage to install a package.

ExtraOriginatingUri ExtraOriginatingUri

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

ExtraPackageName ExtraPackageName
ExtraPhoneNumber ExtraPhoneNumber

A String holding the phone number originally entered in ActionNewOutgoingCall, or the actual number to call in a ActionCall.

ExtraProcessText ExtraProcessText
ExtraProcessTextReadonly ExtraProcessTextReadonly
ExtraQuickViewFeatures ExtraQuickViewFeatures
ExtraQuietMode ExtraQuietMode
ExtraReferrer ExtraReferrer

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

ExtraReferrerName ExtraReferrerName
ExtraRemoteIntentToken ExtraRemoteIntentToken

Used in the extra field in the remote intent.

ExtraReplacementExtras ExtraReplacementExtras

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

ExtraReplacing ExtraReplacing
ExtraRestrictionsBundle ExtraRestrictionsBundle

Extra sent in the intent to the BroadcastReceiver that handles ActionGetRestrictionEntries.

ExtraRestrictionsIntent ExtraRestrictionsIntent

Extra used in the response from a BroadcastReceiver that handles ActionGetRestrictionEntries.

ExtraRestrictionsList ExtraRestrictionsList

Extra used in the response from a BroadcastReceiver that handles ActionGetRestrictionEntries.

ExtraResultReceiver ExtraResultReceiver
ExtraReturnResult ExtraReturnResult

Used as a boolean extra field with ActionInstallPackage or ActionUninstallPackage.

ExtraShortcutIcon ExtraShortcutIcon

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

ExtraShortcutIconResource ExtraShortcutIconResource

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

ExtraShortcutIntent ExtraShortcutIntent

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

ExtraShortcutName ExtraShortcutName

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

ExtraShutdownUserspaceOnly ExtraShutdownUserspaceOnly

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

ExtraSplitName ExtraSplitName
ExtraStream ExtraStream

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

ExtraSubject ExtraSubject

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

ExtraTemplate ExtraTemplate

The initial data to place in a newly created record.

ExtraText ExtraText

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

ExtraTitle ExtraTitle

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

ExtraUid ExtraUid

Used as an int extra field in ActionUidRemoved intents to supply the uid the package had been assigned.

ExtraUser ExtraUser

The UserHandle carried with broadcasts intents related to addition and removal of managed profiles - ActionManagedProfileAdded and ActionManagedProfileRemoved.

MetadataDockHome 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 UriAllowUnsafe
UriAndroidAppScheme UriAndroidAppScheme
UriIntentScheme UriIntentScheme

Flag for use with ToUri(IntentUriType) and ParseUri(String, IntentUriType): the URI string always has the "intent:" scheme.

Properties

Action Action

Retrieve the general action to be performed, such as ActionView.

Categories Categories

Return the set of all categories in the intent.

Class Class

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

(Inherited from Object)
ClipData ClipData

Return the ClipData associated with this Intent.

Component Component

Retrieve the concrete component associated with the intent.

Creator Creator
Data Data

Retrieve data this intent is operating on.

DataString DataString

The same as Data, but returns the URI as an encoded String.

Extras Extras

Retrieves a map of extended data from the intent.

Flags Flags

Retrieve any special flags associated with this intent.

Handle Handle

The handle to the underlying Android instance.

(Inherited from Object)
HasFileDescriptors HasFileDescriptors

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

IJavaObjectEx.IsProxy IJavaObjectEx.IsProxy Inherited from Object
IJavaObjectEx.KeyHandle IJavaObjectEx.KeyHandle Inherited from Object
IJavaObjectEx.NeedsActivation IJavaObjectEx.NeedsActivation Inherited from Object
IJavaPeerable.JniManagedPeerState IJavaPeerable.JniManagedPeerState Inherited from Object
JniIdentityHashCode JniIdentityHashCode Inherited from Object
JniPeerMembers JniPeerMembers
Package Package

Retrieve the application package name this Intent is limited to.

PeerReference PeerReference Inherited from Object
Scheme Scheme

Return the scheme portion of the intent's data.

Selector Selector

Return the specific selector associated with this Intent.

SourceBounds SourceBounds

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

ThresholdClass ThresholdClass

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

ThresholdType ThresholdType

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

Type Type

Retrieve any explicit MIME type included in the intent.

Methods

AddCategory(String) AddCategory(String)

Add a new category to the intent.

AddFlags(ActivityFlags) AddFlags(ActivityFlags)

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

Clone() Clone()

Creates and returns a copy of this Object.

CloneFilter() 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) CreateChooser(Intent, ICharSequence)

Convenience function for creating a ActionChooser Intent.

CreateChooser(Intent, ICharSequence, IntentSender) CreateChooser(Intent, ICharSequence, IntentSender)
CreateChooser(Intent, String) CreateChooser(Intent, String)
CreateChooser(Intent, String, IntentSender) CreateChooser(Intent, String, IntentSender)
DescribeContents() DescribeContents()

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

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

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

(Inherited from Object)
FillIn(Intent, FillInFlags) FillIn(Intent, FillInFlags)

other

FilterEquals(Intent) FilterEquals(Intent)

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

FilterHashCode() FilterHashCode()

Generate hash code that matches semantics of filterEquals().

GetBooleanArrayExtra(String) GetBooleanArrayExtra(String)

Retrieve extended data from the intent.

GetBooleanExtra(String, Boolean) GetBooleanExtra(String, Boolean)

Retrieve extended data from the intent.

GetBundleExtra(String) GetBundleExtra(String)

Retrieve extended data from the intent.

GetByteArrayExtra(String) GetByteArrayExtra(String)

Retrieve extended data from the intent.

GetByteExtra(String, SByte) GetByteExtra(String, SByte)

Retrieve extended data from the intent.

GetCharArrayExtra(String) GetCharArrayExtra(String)

Retrieve extended data from the intent.

GetCharExtra(String, Char) GetCharExtra(String, Char)

Retrieve extended data from the intent.

GetCharSequenceArrayExtra(String) GetCharSequenceArrayExtra(String)
GetCharSequenceArrayExtraFormatted(String) GetCharSequenceArrayExtraFormatted(String)

Retrieve extended data from the intent.

GetCharSequenceArrayListExtra(String) GetCharSequenceArrayListExtra(String)

Retrieve extended data from the intent.

GetCharSequenceExtra(String) GetCharSequenceExtra(String)
GetCharSequenceExtraFormatted(String) GetCharSequenceExtraFormatted(String)

Retrieve extended data from the intent.

GetDoubleArrayExtra(String) GetDoubleArrayExtra(String)

Retrieve extended data from the intent.

GetDoubleExtra(String, Double) GetDoubleExtra(String, Double)

Retrieve extended data from the intent.

GetFloatArrayExtra(String) GetFloatArrayExtra(String)

Retrieve extended data from the intent.

GetFloatExtra(String, Single) GetFloatExtra(String, Single)

Retrieve extended data from the intent.

GetHashCode() GetHashCode()

Returns an integer hash code for this object.

(Inherited from Object)
GetIntArrayExtra(String) GetIntArrayExtra(String)

Retrieve extended data from the intent.

GetIntegerArrayListExtra(String) GetIntegerArrayListExtra(String)

Retrieve extended data from the intent.

GetIntent(String) GetIntent(String)

Call ParseUri(String, IntentUriType) with 0 flags.

GetIntentOld(String) GetIntentOld(String)
GetIntExtra(String, Int32) GetIntExtra(String, Int32)

Retrieve extended data from the intent.

GetLongArrayExtra(String) GetLongArrayExtra(String)

Retrieve extended data from the intent.

GetLongExtra(String, Int64) GetLongExtra(String, Int64)

Retrieve extended data from the intent.

GetParcelableArrayExtra(String) GetParcelableArrayExtra(String)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String) GetParcelableArrayListExtra(String)

Retrieve extended data from the intent.

GetParcelableExtra(String) GetParcelableExtra(String)

Retrieve extended data from the intent.

GetSerializableExtra(String) GetSerializableExtra(String)

Retrieve extended data from the intent.

GetShortArrayExtra(String) GetShortArrayExtra(String)

Retrieve extended data from the intent.

GetShortExtra(String, Int16) GetShortExtra(String, Int16)

Retrieve extended data from the intent.

GetStringArrayExtra(String) GetStringArrayExtra(String)

Retrieve extended data from the intent.

GetStringArrayListExtra(String) GetStringArrayListExtra(String)

Retrieve extended data from the intent.

GetStringExtra(String) GetStringExtra(String)

Retrieve extended data from the intent.

HasCategory(String) HasCategory(String)

Check if a category exists in the intent.

HasExtra(String) HasExtra(String)

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

JavaFinalize() JavaFinalize()

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

(Inherited from Object)
MakeMainActivity(ComponentName) MakeMainActivity(ComponentName)

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

MakeMainSelectorActivity(String, String) 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) MakeRestartActivityTask(ComponentName)

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

NormalizeMimeType(String) NormalizeMimeType(String)

Normalize a MIME data type.

Notify() Notify()

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

(Inherited from Object)
NotifyAll() NotifyAll()

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

(Inherited from Object)
ParseIntent(Resources, XmlReader, IAttributeSet) ParseIntent(Resources, XmlReader, IAttributeSet)

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

ParseUri(String, IntentUriType) ParseUri(String, IntentUriType)

Create an intent from a URI.

PutCharSequenceArrayListExtra(String, IList<ICharSequence>) PutCharSequenceArrayListExtra(String, IList<ICharSequence>)
PutExtra(String, Boolean) PutExtra(String, Boolean)

Add extended data to the intent.

PutExtra(String, Boolean[]) PutExtra(String, Boolean[])

Add extended data to the intent.

PutExtra(String, Bundle) PutExtra(String, Bundle)

Add extended data to the intent.

PutExtra(String, Byte[]) PutExtra(String, Byte[])

Add extended data to the intent.

PutExtra(String, Char) PutExtra(String, Char)

Add extended data to the intent.

PutExtra(String, Char[]) PutExtra(String, Char[])

Add extended data to the intent.

PutExtra(String, Double) PutExtra(String, Double)

Add extended data to the intent.

PutExtra(String, Double[]) PutExtra(String, Double[])

Add extended data to the intent.

PutExtra(String, ICharSequence) PutExtra(String, ICharSequence)

Add extended data to the intent.

PutExtra(String, ICharSequence[]) PutExtra(String, ICharSequence[])

Add extended data to the intent.

PutExtra(String, Int16) PutExtra(String, Int16)

Add extended data to the intent.

PutExtra(String, Int16[]) PutExtra(String, Int16[])

Add extended data to the intent.

PutExtra(String, Int32) PutExtra(String, Int32)

Add extended data to the intent.

PutExtra(String, Int32[]) PutExtra(String, Int32[])

Add extended data to the intent.

PutExtra(String, Int64) PutExtra(String, Int64)

Add extended data to the intent.

PutExtra(String, Int64[]) PutExtra(String, Int64[])

Add extended data to the intent.

PutExtra(String, IParcelable) PutExtra(String, IParcelable)

Add extended data to the intent.

PutExtra(String, IParcelable[]) PutExtra(String, IParcelable[])

Add extended data to the intent.

PutExtra(String, ISerializable) PutExtra(String, ISerializable)

Add extended data to the intent.

PutExtra(String, SByte) PutExtra(String, SByte)

Add extended data to the intent.

PutExtra(String, Single) PutExtra(String, Single)

Add extended data to the intent.

PutExtra(String, Single[]) PutExtra(String, Single[])

Add extended data to the intent.

PutExtra(String, String) PutExtra(String, String)

Add extended data to the intent.

PutExtra(String, String[]) PutExtra(String, String[])

Add extended data to the intent.

PutExtras(Bundle) PutExtras(Bundle)

Add a set of extended data to the intent.

PutExtras(Intent) PutExtras(Intent)

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

PutIntegerArrayListExtra(String, IList<Integer>) PutIntegerArrayListExtra(String, IList<Integer>)
PutParcelableArrayListExtra(String, IList<IParcelable>) PutParcelableArrayListExtra(String, IList<IParcelable>)
PutStringArrayListExtra(String, IList<String>) PutStringArrayListExtra(String, IList<String>)
ReadFromParcel(Parcel) ReadFromParcel(Parcel)
RemoveCategory(String) RemoveCategory(String)

Remove a category from an intent.

RemoveExtra(String) RemoveExtra(String)

Remove extended data from the intent.

RemoveFlags(ActivityFlags) RemoveFlags(ActivityFlags)
ReplaceExtras(Bundle) ReplaceExtras(Bundle)

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

ReplaceExtras(Intent) ReplaceExtras(Intent)

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

ResolveActivity(PackageManager) ResolveActivity(PackageManager)

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

ResolveActivityInfo(PackageManager, PackageInfoFlags) ResolveActivityInfo(PackageManager, PackageInfoFlags)

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

ResolveType(ContentResolver) ResolveType(ContentResolver)

Return the MIME data type of this intent.

ResolveType(Context) ResolveType(Context)

Return the MIME data type of this intent.

ResolveTypeIfNeeded(ContentResolver) ResolveTypeIfNeeded(ContentResolver)

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

SetAction(String) SetAction(String)

Set the general action to be performed.

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

Convenience for calling SetComponent(ComponentName) with an explicit class name.

SetClassName(String, String) SetClassName(String, String)

Convenience for calling SetComponent(ComponentName) with an explicit application package name and class name.

SetComponent(ComponentName) SetComponent(ComponentName)

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

SetData(Uri) SetData(Uri)

Set the data this intent is operating on.

SetDataAndNormalize(Uri) SetDataAndNormalize(Uri)

Normalize and set the data this intent is operating on.

SetDataAndType(Uri, String) SetDataAndType(Uri, String)

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

SetDataAndTypeAndNormalize(Uri, String) SetDataAndTypeAndNormalize(Uri, String)

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

SetExtrasClassLoader(ClassLoader) SetExtrasClassLoader(ClassLoader)

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

SetFlags(ActivityFlags) SetFlags(ActivityFlags)

Set special flags controlling how this intent is handled.

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

Sets the Handle property.

(Inherited from Object)
SetPackage(String) SetPackage(String)

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

SetType(String) SetType(String)

Set an explicit MIME data type.

SetTypeAndNormalize(String) SetTypeAndNormalize(String)

Normalize and set an explicit MIME data type.

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

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

(Inherited from Object)
ToURI() ToURI()

Call ToUri(IntentUriType) with 0 flags.

ToUri(IntentUriType) ToUri(IntentUriType)

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

UnregisterFromRuntime() UnregisterFromRuntime() Inherited from Object
Wait() Wait()

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

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

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

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

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

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags) WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

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

Extension Methods

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

Performs an Android runtime-checked type conversion.

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

Applies to