Aracılığıyla paylaş


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

An intent is an abstract description of an operation to be performed. It can be used with Context#startActivity(Intent) startActivity to launch an android.app.Activity, android.content.Context#sendBroadcast(Intent) broadcastIntent to send it to any interested BroadcastReceiver BroadcastReceiver components, and android.content.Context#startService or android.content.Context#bindService to communicate with a background android.app.Service.

An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed.

<div class="special reference"> <h3>Developer Guides</h3>

For information about how to create and resolve intents, read the Intents and Intent Filters developer guide.

</div>

"IntentStructure"><h3>Intent Structure</h3>

The primary pieces of information in an intent are:

<ul> <li>

<b>action</b> -- The general action to be performed, such as #ACTION_VIEW, #ACTION_EDIT, #ACTION_MAIN, etc.

</li> <li>

<b>data</b> -- The data to operate on, such as a person record in the contacts database, expressed as a android.net.Uri.

</li> </ul>

Some examples of action/data pairs are:

<ul> <li>

<b>#ACTION_VIEWcontent://contacts/people/1</b> -- Display information about the person whose identifier is "1".

</li> <li>

<b>#ACTION_DIALcontent://contacts/people/1</b> -- Display the phone dialer with the person filled in.

</li> <li>

<b>#ACTION_VIEWtel:123</b> -- Display the phone dialer with the given number filled in. Note how the VIEW action does what is considered the most reasonable thing for a particular URI.

</li> <li>

<b>#ACTION_DIALtel:123</b> -- Display the phone dialer with the given number filled in.

</li> <li>

<b>#ACTION_EDITcontent://contacts/people/1</b> -- Edit information about the person whose identifier is "1".

</li> <li>

<b>#ACTION_VIEWcontent://contacts/people/</b> -- Display a list of people, which the user can browse through. This example is a typical top-level entry into the Contacts application, showing you the list of people. Selecting a particular person to view would result in a new intent {<b>#ACTION_VIEWcontent://contacts/people/N</b> } being used to start an activity to display that person.

</li> </ul>

In addition to these primary attributes, there are a number of secondary attributes that you can also include with an intent:

<ul> <li>

<b>category</b> -- Gives additional information about the action to execute. For example, #CATEGORY_LAUNCHER means it should appear in the Launcher as a top-level application, while #CATEGORY_ALTERNATIVE means it should be included in a list of alternative actions the user can perform on a piece of data.

<li>

<b>type</b> -- Specifies an explicit type (a MIME type) of the intent data. Normally the type is inferred from the data itself. By setting this attribute, you disable that evaluation and force an explicit type.

<li>

<b>component</b> -- Specifies an explicit name of a component class to use for the intent. Normally this is determined by looking at the other information in the intent (the action, data/type, and categories) and matching that with a component that can handle it. If this attribute is set then none of the evaluation is performed, and this component is used exactly as is. By specifying this attribute, all of the other Intent attributes become optional.

<li>

<b>extras</b> -- This is a Bundle of any additional information. This can be used to provide extended information to the component. For example, if we have a action to send an e-mail message, we could also include extra pieces of data here to supply a subject, body, etc.

</ul>

Here are some examples of other operations you can specify as intents using these additional parameters:

<ul> <li>

<b>#ACTION_MAIN with category #CATEGORY_HOME</b> -- Launch the home screen.

</li> <li>

<b>#ACTION_GET_CONTENT with MIME type android.provider.Contacts.Phones#CONTENT_URI vnd.android.cursor.item/phone</b> -- Display the list of people's phone numbers, allowing the user to browse through them and pick one and return it to the parent activity.

</li> <li>

<b>#ACTION_GET_CONTENT with MIME type */* and category #CATEGORY_OPENABLE</b> -- Display all pickers for data that can be opened with ContentResolver#openInputStream(Uri) ContentResolver.openInputStream(), allowing the user to pick one of them and then some data inside of it and returning the resulting URI to the caller. This can be used, for example, in an e-mail application to allow the user to pick some data to include as an attachment.

</li> </ul>

There are a variety of standard Intent action and category constants defined in the Intent class, but applications can also define their own. These strings use Java-style scoping, to ensure they are unique -- for example, the standard #ACTION_VIEW is called "android.intent.action.VIEW".

Put together, the set of actions, data types, categories, and extra data defines a language for the system allowing for the expression of phrases such as "call john smith's cell". As applications are added to the system, they can extend this language by adding new actions, types, and categories, or they can modify the behavior of existing phrases by supplying their own activities that handle them.

"IntentResolution"><h3>Intent Resolution</h3>

There are two primary forms of intents you will use.

<ul> <li>

<b>Explicit Intents</b> have specified a component (via #setComponent or #setClass), which provides the exact class to be run. Often these will not include any other information, simply being a way for an application to launch various internal activities it has as the user interacts with the application.

<li>

<b>Implicit Intents</b> have not specified a component; instead, they must include enough information for the system to determine which of the available components is best to run for that intent. </ul>

When using implicit intents, given such an arbitrary intent we need to know what to do with it. This is handled by the process of <em>Intent resolution</em>, which maps an Intent to an android.app.Activity, BroadcastReceiver, or android.app.Service (or sometimes two or more activities/receivers) that can handle it.

The intent resolution mechanism basically revolves around matching an Intent against all of the &lt;intent-filter&gt; descriptions in the installed application packages. (Plus, in the case of broadcasts, any BroadcastReceiver objects explicitly registered with Context#registerReceiver.) More details on this can be found in the documentation on the IntentFilter class.

There are three pieces of information in the Intent that are used for resolution: the action, type, and category. Using this information, a query is done on the PackageManager for a component that can handle the intent. The appropriate component is determined based on the intent information supplied in the AndroidManifest.xml file as follows:

<ul> <li>

The <b>action</b>, if given, must be listed by the component as one it handles.

<li>

The <b>type</b> is retrieved from the Intent's data, if not already supplied in the Intent. Like the action, if a type is included in the intent (either explicitly or implicitly in its data), then this must be listed by the component as one it handles.

<li> For data that is not a content: URI and where no explicit type is included in the Intent, instead the <b>scheme</b> of the intent data (such as http: or mailto:) is considered. Again like the action, if we are matching a scheme it must be listed by the component as one it can handle. <li>

The <b>categories</b>, if supplied, must <em>all</em> be listed by the activity as categories it handles. That is, if you include the categories #CATEGORY_LAUNCHER and #CATEGORY_ALTERNATIVE, then you will only resolve to components with an intent that lists <em>both</em> of those categories. Activities will very often need to support the #CATEGORY_DEFAULT so that they can be found by Context#startActivity Context.startActivity().

</ul>

For example, consider the Note Pad sample application that allows a user to browse through a list of notes data and view details about individual items. Text in italics indicates places where you would replace a name with one specific to your own package.

&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
                  package="<i>com.android.notepad</i>"&gt;
                &lt;application android:icon="@drawable/app_notes"
                        android:label="@string/app_name"&gt;

                    &lt;provider class=".NotePadProvider"
                            android:authorities="<i>com.google.provider.NotePad</i>" /&gt;

                    &lt;activity class=".NotesList" android:label="@string/title_notes_list"&gt;
                        &lt;intent-filter&gt;
                            &lt;action android:name="android.intent.action.MAIN" /&gt;
                            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                        &lt;/intent-filter&gt;
                        &lt;intent-filter&gt;
                            &lt;action android:name="android.intent.action.VIEW" /&gt;
                            &lt;action android:name="android.intent.action.EDIT" /&gt;
                            &lt;action android:name="android.intent.action.PICK" /&gt;
                            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                            &lt;data android:mimeType="vnd.android.cursor.dir/<i>vnd.google.note</i>" /&gt;
                        &lt;/intent-filter&gt;
                        &lt;intent-filter&gt;
                            &lt;action android:name="android.intent.action.GET_CONTENT" /&gt;
                            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                            &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
                        &lt;/intent-filter&gt;
                    &lt;/activity&gt;

                    &lt;activity class=".NoteEditor" android:label="@string/title_note"&gt;
                        &lt;intent-filter android:label="@string/resolve_edit"&gt;
                            &lt;action android:name="android.intent.action.VIEW" /&gt;
                            &lt;action android:name="android.intent.action.EDIT" /&gt;
                            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                            &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
                        &lt;/intent-filter&gt;

                        &lt;intent-filter&gt;
                            &lt;action android:name="android.intent.action.INSERT" /&gt;
                            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                            &lt;data android:mimeType="vnd.android.cursor.dir/<i>vnd.google.note</i>" /&gt;
                        &lt;/intent-filter&gt;

                    &lt;/activity&gt;

                    &lt;activity class=".TitleEditor" android:label="@string/title_edit_title"
                            android:theme="@android:style/Theme.Dialog"&gt;
                        &lt;intent-filter android:label="@string/resolve_title"&gt;
                            &lt;action android:name="<i>com.android.notepad.action.EDIT_TITLE</i>" /&gt;
                            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
                            &lt;category android:name="android.intent.category.ALTERNATIVE" /&gt;
                            &lt;category android:name="android.intent.category.SELECTED_ALTERNATIVE" /&gt;
                            &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
                        &lt;/intent-filter&gt;
                    &lt;/activity&gt;

                &lt;/application&gt;
            &lt;/manifest&gt;

The first activity, com.android.notepad.NotesList, serves as our main entry into the app. It can do three things as described by its three intent templates: <ol> <li>

&lt;intent-filter&gt;
                &lt;action android:name="{@link #ACTION_MAIN android.intent.action.MAIN}" /&gt;
                &lt;category android:name="{@link #CATEGORY_LAUNCHER android.intent.category.LAUNCHER}" /&gt;
            &lt;/intent-filter&gt;

This provides a top-level entry into the NotePad application: the standard MAIN action is a main entry point (not requiring any other information in the Intent), and the LAUNCHER category says that this entry point should be listed in the application launcher.

<li>

&lt;intent-filter&gt;
                &lt;action android:name="{@link #ACTION_VIEW android.intent.action.VIEW}" /&gt;
                &lt;action android:name="{@link #ACTION_EDIT android.intent.action.EDIT}" /&gt;
                &lt;action android:name="{@link #ACTION_PICK android.intent.action.PICK}" /&gt;
                &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
                &lt;data android:mimeType="vnd.android.cursor.dir/<i>vnd.google.note</i>" /&gt;
            &lt;/intent-filter&gt;

This declares the things that the activity can do on a directory of notes. The type being supported is given with the &lt;type&gt; tag, where vnd.android.cursor.dir/vnd.google.note is a URI from which a Cursor of zero or more items (vnd.android.cursor.dir) can be retrieved which holds our note pad data (vnd.google.note). The activity allows the user to view or edit the directory of data (via the VIEW and EDIT actions), or to pick a particular note and return it to the caller (via the PICK action). Note also the DEFAULT category supplied here: this is <em>required</em> for the Context#startActivity Context.startActivity method to resolve your activity when its component name is not explicitly specified.

<li>

&lt;intent-filter&gt;
                &lt;action android:name="{@link #ACTION_GET_CONTENT android.intent.action.GET_CONTENT}" /&gt;
                &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
                &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
            &lt;/intent-filter&gt;

This filter describes the ability to return to the caller a note selected by the user without needing to know where it came from. The data type vnd.android.cursor.item/vnd.google.note is a URI from which a Cursor of exactly one (vnd.android.cursor.item) item can be retrieved which contains our note pad data (vnd.google.note). The GET_CONTENT action is similar to the PICK action, where the activity will return to its caller a piece of data selected by the user. Here, however, the caller specifies the type of data they desire instead of the type of data the user will be picking from.

</ol>

Given these capabilities, the following intents will resolve to the NotesList activity:

<ul> <li>

<b>{ action=android.app.action.MAIN }</b> matches all of the activities that can be used as top-level entry points into an application.

<li>

<b>{ action=android.app.action.MAIN, category=android.app.category.LAUNCHER }</b> is the actual intent used by the Launcher to populate its top-level list.

<li>

<b>{ action=android.intent.action.VIEW data=content://com.google.provider.NotePad/notes }</b> displays a list of all the notes under "content://com.google.provider.NotePad/notes", which the user can browse through and see the details on.

<li>

<b>{ action=android.app.action.PICK data=content://com.google.provider.NotePad/notes }</b> provides a list of the notes under "content://com.google.provider.NotePad/notes", from which the user can pick a note whose data URL is returned back to the caller.

<li>

<b>{ action=android.app.action.GET_CONTENT type=vnd.android.cursor.item/vnd.google.note }</b> is similar to the pick action, but allows the caller to specify the kind of data they want back so that the system can find the appropriate activity to pick something of that data type.

</ul>

The second activity, com.android.notepad.NoteEditor, shows the user a single note entry and allows them to edit it. It can do two things as described by its two intent templates: <ol> <li>

&lt;intent-filter android:label="@string/resolve_edit"&gt;
                &lt;action android:name="{@link #ACTION_VIEW android.intent.action.VIEW}" /&gt;
                &lt;action android:name="{@link #ACTION_EDIT android.intent.action.EDIT}" /&gt;
                &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
                &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
            &lt;/intent-filter&gt;

The first, primary, purpose of this activity is to let the user interact with a single note, as decribed by the MIME type vnd.android.cursor.item/vnd.google.note. The activity can either VIEW a note or allow the user to EDIT it. Again we support the DEFAULT category to allow the activity to be launched without explicitly specifying its component.

<li>

&lt;intent-filter&gt;
                &lt;action android:name="{@link #ACTION_INSERT android.intent.action.INSERT}" /&gt;
                &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
                &lt;data android:mimeType="vnd.android.cursor.dir/<i>vnd.google.note</i>" /&gt;
            &lt;/intent-filter&gt;

The secondary use of this activity is to insert a new note entry into an existing directory of notes. This is used when the user creates a new note: the INSERT action is executed on the directory of notes, causing this activity to run and have the user create the new note data which it then adds to the content provider.

</ol>

Given these capabilities, the following intents will resolve to the NoteEditor activity:

<ul> <li>

<b>{ action=android.intent.action.VIEW data=content://com.google.provider.NotePad/notes/<var>{ID}</var> }</b> shows the user the content of note <var>{ID}</var>.

<li>

<b>{ action=android.app.action.EDIT data=content://com.google.provider.NotePad/notes/<var>{ID}</var> }</b> allows the user to edit the content of note <var>{ID}</var>.

<li>

<b>{ action=android.app.action.INSERT data=content://com.google.provider.NotePad/notes }</b> creates a new, empty note in the notes list at "content://com.google.provider.NotePad/notes" and allows the user to edit it. If they keep their changes, the URI of the newly created note is returned to the caller.

</ul>

The last activity, com.android.notepad.TitleEditor, allows the user to edit the title of a note. This could be implemented as a class that the application directly invokes (by explicitly setting its component in the Intent), but here we show a way you can publish alternative operations on existing data:

&lt;intent-filter android:label="@string/resolve_title"&gt;
                &lt;action android:name="<i>com.android.notepad.action.EDIT_TITLE</i>" /&gt;
                &lt;category android:name="{@link #CATEGORY_DEFAULT android.intent.category.DEFAULT}" /&gt;
                &lt;category android:name="{@link #CATEGORY_ALTERNATIVE android.intent.category.ALTERNATIVE}" /&gt;
                &lt;category android:name="{@link #CATEGORY_SELECTED_ALTERNATIVE android.intent.category.SELECTED_ALTERNATIVE}" /&gt;
                &lt;data android:mimeType="vnd.android.cursor.item/<i>vnd.google.note</i>" /&gt;
            &lt;/intent-filter&gt;

In the single intent template here, we have created our own private action called com.android.notepad.action.EDIT_TITLE which means to edit the title of a note. It must be invoked on a specific note (data type vnd.android.cursor.item/vnd.google.note) like the previous view and edit actions, but here displays and edits the title contained in the note data.

In addition to supporting the default category as usual, our title editor also supports two other standard categories: ALTERNATIVE and SELECTED_ALTERNATIVE. Implementing these categories allows others to find the special action it provides without directly knowing about it, through the android.content.pm.PackageManager#queryIntentActivityOptions method, or more often to build dynamic menu items with android.view.Menu#addIntentOptions. Note that in the intent template here was also supply an explicit name for the template (via android:label="@string/resolve_title") to better control what the user sees when presented with this activity as an alternative action to the data they are viewing.

Given these capabilities, the following intent will resolve to the TitleEditor activity:

<ul> <li>

<b>{ action=com.android.notepad.action.EDIT_TITLE data=content://com.google.provider.NotePad/notes/<var>{ID}</var> }</b> displays and allows the user to edit the title associated with note <var>{ID}</var>.

</ul>

<h3>Standard Activity Actions</h3>

These are the current standard actions that Intent defines for launching activities (usually through Context#startActivity. The most important, and by far most frequently used, are #ACTION_MAIN and #ACTION_EDIT.

<ul> <li> #ACTION_MAIN<li> #ACTION_VIEW<li> #ACTION_ATTACH_DATA<li> #ACTION_EDIT<li> #ACTION_PICK<li> #ACTION_CHOOSER<li> #ACTION_GET_CONTENT<li> #ACTION_DIAL<li> #ACTION_CALL<li> #ACTION_SEND<li> #ACTION_SENDTO<li> #ACTION_ANSWER<li> #ACTION_INSERT<li> #ACTION_DELETE<li> #ACTION_RUN<li> #ACTION_SYNC<li> #ACTION_PICK_ACTIVITY<li> #ACTION_SEARCH<li> #ACTION_WEB_SEARCH<li> #ACTION_FACTORY_TEST</ul>

<h3>Standard Broadcast Actions</h3>

These are the current standard actions that Intent defines for receiving broadcasts (usually through Context#registerReceiver or a &lt;receiver&gt; tag in a manifest).

<ul> <li> #ACTION_TIME_TICK<li> #ACTION_TIME_CHANGED<li> #ACTION_TIMEZONE_CHANGED<li> #ACTION_BOOT_COMPLETED<li> #ACTION_PACKAGE_ADDED<li> #ACTION_PACKAGE_CHANGED<li> #ACTION_PACKAGE_REMOVED<li> #ACTION_PACKAGE_RESTARTED<li> #ACTION_PACKAGE_DATA_CLEARED<li> #ACTION_PACKAGES_SUSPENDED<li> #ACTION_PACKAGES_UNSUSPENDED<li> #ACTION_UID_REMOVED<li> #ACTION_BATTERY_CHANGED<li> #ACTION_POWER_CONNECTED<li> #ACTION_POWER_DISCONNECTED<li> #ACTION_SHUTDOWN</ul>

<p class="note"><strong>Note: </strong>If your app targets Android 11 (API level 30) or higher, registering broadcast such as #ACTION_PACKAGES_SUSPENDED that includes package details in the extras receives a filtered list of apps or nothing. Learn more about how to manage package visibility.

<h3>Standard Categories</h3>

These are the current standard categories that can be used to further clarify an Intent via #addCategory.

<ul> <li> #CATEGORY_DEFAULT<li> #CATEGORY_BROWSABLE<li> #CATEGORY_TAB<li> #CATEGORY_ALTERNATIVE<li> #CATEGORY_SELECTED_ALTERNATIVE<li> #CATEGORY_LAUNCHER<li> #CATEGORY_INFO<li> #CATEGORY_HOME<li> #CATEGORY_PREFERENCE<li> #CATEGORY_TEST<li> #CATEGORY_CAR_DOCK<li> #CATEGORY_DESK_DOCK<li> #CATEGORY_LE_DESK_DOCK<li> #CATEGORY_HE_DESK_DOCK<li> #CATEGORY_CAR_MODE<li> #CATEGORY_APP_MARKET<li> #CATEGORY_VR_HOME</ul>

<h3>Standard Extra Data</h3>

These are the current standard fields that can be used as extra data via #putExtra.

<ul> <li> #EXTRA_ALARM_COUNT<li> #EXTRA_BCC<li> #EXTRA_CC<li> #EXTRA_CHANGED_COMPONENT_NAME<li> #EXTRA_DATA_REMOVED<li> #EXTRA_DOCK_STATE<li> #EXTRA_DOCK_STATE_HE_DESK<li> #EXTRA_DOCK_STATE_LE_DESK<li> #EXTRA_DOCK_STATE_CAR<li> #EXTRA_DOCK_STATE_DESK<li> #EXTRA_DOCK_STATE_UNDOCKED<li> #EXTRA_DONT_KILL_APP<li> #EXTRA_EMAIL<li> #EXTRA_INITIAL_INTENTS<li> #EXTRA_INTENT<li> #EXTRA_KEY_EVENT<li> #EXTRA_ORIGINATING_URI<li> #EXTRA_PHONE_NUMBER<li> #EXTRA_REFERRER<li> #EXTRA_REMOTE_INTENT_TOKEN<li> #EXTRA_REPLACING<li> #EXTRA_SHORTCUT_ICON<li> #EXTRA_SHORTCUT_ICON_RESOURCE<li> #EXTRA_SHORTCUT_INTENT<li> #EXTRA_STREAM<li> #EXTRA_SHORTCUT_NAME<li> #EXTRA_SUBJECT<li> #EXTRA_TEMPLATE<li> #EXTRA_TEXT<li> #EXTRA_TITLE<li> #EXTRA_UID<li> #EXTRA_USER_INITIATED</ul>

<h3>Flags</h3>

These are the possible flags that can be used in the Intent via #setFlags and #addFlags. See #setFlags for a list of all possible flags.

Java documentation for android.content.Intent.

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 intent for a specific component.

Intent(Context, Type)
Intent(Intent)

Copy constructor.

Intent(IntPtr, JniHandleOwnership)

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

Intent(String, Uri, Context, Class)

Create an intent for a specific component with a specified action and data.

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

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

Intent(String)

Create an intent with a given action.

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.

ActionApplicationLocaleChanged

Broadcast Action: Locale of a particular app has changed.

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

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.

ActionCreateNote

Activity Action: Starts a note-taking activity that can be used to create a note.

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

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

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

Activity Action: Launch application installer.

ActionLaunchCaptureContentActivityForNote

Activity Action: Use with startActivityForResult to start a system activity that captures content on the screen to take a screenshot and present it to the user for editing.

ActionLocaleChanged

Broadcast Action: The receiver's effective 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

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

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.

ActionProfileAdded

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

ActionProfileInaccessible

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

ActionProfileRemoved

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

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.

ActionSafetyCenter

Activity action: Launch UI to open the Safety Center, which highlights the user's security and privacy status.

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.

ActionShowWorkApps

Activity Action: Action to show the list of all work apps in the launcher.

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 uid 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

Activity Action: Launch application uninstaller.

ActionUserBackground

Sent after a user switch is complete, if the switch caused the process's user to be sent to the background.

ActionUserForeground

Sent after a user switch is complete, if the switch caused 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.

CaptureContentForNoteBlockedByAdmin
Obsolete.

A response code used with #EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that screenshot is blocked by IT admin.

CaptureContentForNoteFailed
Obsolete.

A response code used with #EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that something went wrong.

CaptureContentForNoteSuccess
Obsolete.

A response code used with #EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that the request was a success.

CaptureContentForNoteUserCanceled
Obsolete.

A response code used with #EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that user canceled the content capture flow.

CaptureContentForNoteWindowModeUnsupported
Obsolete.

A response code used with #EXTRA_CAPTURE_CONTENT_FOR_NOTE_STATUS_CODE to indicate that the intent action #ACTION_LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE was started by an activity that is running in a non-supported window mode.

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.

CategoryAppFitness

Used with #ACTION_MAIN to launch the fitness 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.

CategoryAppWeather

Used with #ACTION_MAIN to launch the weather 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 desk 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 and ACTION_MANAGE_PERMISSION_USAGE

        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.

ExtraCaptureContentForNoteStatusCode

An int extra used by activity started with #ACTION_LAUNCH_CAPTURE_CONTENT_ACTIVITY_FOR_NOTE to indicate status of the response.

ExtraCc

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

ExtraChangedComponentName
Obsolete.

This member is deprecated.

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.

ExtraChooserCustomActions

A Parcelable[] of ChooserAction objects to provide the Android Sharesheet with app-specific actions to be presented to the user when invoking #ACTION_CHOOSER.

ExtraChooserModifyShareAction

Optional argument to be used with #ACTION_CHOOSER.

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 and ACTION_MANAGE_PERMISSION_USAGE

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[]) to place at the front of the list of choices, when shown to the user with an #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.

ExtraLocaleList

Intent extra: A android.os.LocaleList

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.

ExtraPackages

String array of package names.

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

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

ExtraShortcutIconResource

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

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

ExtraShortcutName

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 and ACTION_MANAGE_PERMISSION_USAGE

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.

ExtraUseStylusMode

A boolean extra used with #ACTION_CREATE_NOTE indicating whether the launched note-taking activity should show a UI that is suitable to use with stylus input.

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.

FlagReceiverVisibleToInstantApps
Obsolete.

If set, the broadcast will be visible to receivers in Instant Apps.

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

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

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, IntentSender)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, ICharSequence)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, String, IntentSender)

Convenience function for creating a #ACTION_CHOOSER Intent.

CreateChooser(Intent, String)

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 <var>other</var> 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, Class)

Retrieve extended data from the intent.

GetParcelableArrayExtra(String)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String, Class)

Retrieve extended data from the intent.

GetParcelableArrayListExtra(String)

Retrieve extended data from the intent.

GetParcelableExtra(String, Class)

Retrieve extended data from the intent.

GetParcelableExtra(String)

Retrieve extended data from the intent.

GetSerializableExtra(String, Class)

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)

Add a set of extended data to the 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 given Bundle of extras.

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 application package name and 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 it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(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