Lines Matching defs:Intent

72  * can be used with {@link Context#startActivity(Intent) startActivity} to
74 * {@link android.content.Context#sendBroadcast(Intent) broadcastIntent} to
80 * <p>An Intent provides a facility for performing late runtime binding between the code in
88 * <a href="{@docRoot}guide/topics/intents/intents-filters.html">Intents and Intent Filters</a>
93 * <h3>Intent Structure</h3>
155 * all of the other Intent attributes become optional.</p>
187 * <p>There are a variety of standard Intent action and category constants
188 * defined in the Intent class, but applications can also define their own.
201 * <h3>Intent Resolution</h3>
219 * know what to do with it. This is handled by the process of <em>Intent
220 * resolution</em>, which maps an Intent to an {@link android.app.Activity},
225 * Intent against all of the &lt;intent-filter&gt; descriptions in the
231 * <p>There are three pieces of information in the Intent that are used for
241 * <li> <p>The <b>type</b> is retrieved from the Intent's data, if not
242 * already supplied in the Intent. Like the action, if a type is
246 * type is included in the Intent, instead the <b>scheme</b> of the
334 * the Intent), and the LAUNCHER category says that this entry point should be
452 * the Intent), but here we show a way you can publish alternative
497 * <p>These are the current standard actions that Intent defines for launching
527 * <p>These are the current standard actions that Intent defines for receiving
553 * clarify an Intent via {@link #addCategory}.
615 * <p>These are the possible flags that can be used in the Intent via
619 public class Intent implements Parcelable, Cloneable {
718 * <p>Output: An Intent representing the shortcut. The intent must contain three
719 * extras: SHORTCUT_INTENT (value: Intent), SHORTCUT_NAME (value: String),
727 * @see android.content.Intent.ShortcutIconResource
733 * The name of the extra used to define the Intent of a shortcut.
754 * @see android.content.Intent.ShortcutIconResource
783 * @see Intent#ACTION_CREATE_SHORTCUT
784 * @see Intent#EXTRA_SHORTCUT_ICON_RESOURCE
881 * the permissions to be granted on the ACTION_CHOOSER Intent
887 * As a convenience, an Intent of this form can be created with the
891 * a {@link #EXTRA_INTENT} field containing the Intent being executed,
901 * Convenience function for creating a {@link #ACTION_CHOOSER} Intent.
903 * <p>Builds a new {@link #ACTION_CHOOSER} Intent that wraps the given
911 * @param target The Intent that the user will be selecting an activity
914 * @return Return a new Intent object that you can hand to
915 * {@link Context#startActivity(Intent) Context.startActivity()} and
918 public static Intent createChooser(Intent target, CharSequence title) {
923 * Convenience function for creating a {@link #ACTION_CHOOSER} Intent.
925 * <p>Builds a new {@link #ACTION_CHOOSER} Intent that wraps the given
938 * @param target The Intent that the user will be selecting an activity
942 * @return Return a new Intent object that you can hand to
943 * {@link Context#startActivity(Intent) Context.startActivity()} and
946 public static Intent createChooser(Intent target, CharSequence title, IntentSender sender) {
947 Intent intent = new Intent(ACTION_CHOOSER);
993 * data you want and launch it with {@link Context#startActivity(Intent)}.
1011 * accomplished by requiring the {@link #CATEGORY_OPENABLE} in the Intent.
1057 * <p>Note: this Intent <strong>cannot</strong> be used to call emergency
1132 * it will be copied there for you when calling {@link Context#startActivity(Intent)}.
1170 * it will be copied there for you when calling {@link Context#startActivity(Intent)}.
1228 * <p>Input: get*Extra field {@link #EXTRA_INTENT} is an Intent
1513 * invoking the Intent. For this to work you must start the installer with
1521 * {@link #ACTION_VIEW} to indicate the URI from which the local APK in the Intent
1528 * This extra can be used with any Intent used to launch an activity, supplying information
1548 * not be created, in particular when Intent extras are supplied through the
1696 * Intent extra: A callback for reporting remote result as a bundle.
1707 * Intent extra: An app package name.
1716 * Intent extra: An extra for specifying whether a result is needed.
1746 * Intent extra: The name of a permission.
1995 * that is being removed does <em>not</em> receive this Intent.
2290 * contents of the Intent.
2452 * The path to the mount point for the removed media is contained in the Intent.mData field.
2459 * The path to the mount point for the unmounted media is contained in the Intent.mData field.
2466 * The path to the mount point for the checking media is contained in the Intent.mData field.
2473 * The path to the mount point for the checking media is contained in the Intent.mData field.
2480 * The path to the mount point for the mounted media is contained in the Intent.mData field.
2481 * The Intent contains an extra with name "read-only" and Boolean value to indicate if the
2489 * The path to the mount point for the shared media is contained in the Intent.mData field.
2496 * The path to the mount point for the previously shared media is contained in the Intent.mData field.
2504 * The path to the mount point for the removed media is contained in the Intent.mData field.
2511 * The path to the mount point for the unmountable media is contained in the Intent.mData field.
2519 * The path to the mount point for the media to be ejected is contained in the Intent.mData field.
2526 * The path to the directory being scanned is contained in the Intent.mData field.
2533 * The path to the scanned directory is contained in the Intent.mData field.
2540 * The path to the file is contained in the Intent.mData field.
2669 * <p>The Intent will have the following extra value:</p>
2671 * <li><em>{@link android.content.Intent#EXTRA_PHONE_NUMBER}</em> -
2688 * <p>Any BroadcastReceiver receiving this Intent <em>must not</em>
2699 * permission to receive this Intent.</p>
2748 * {@link BroadcastReceiver#onReceive(Context, Intent)}, rather start a
2749 * maintenance service by {@link Context#startService(Intent)}. Also
2779 * {@link BroadcastReceiver#onReceive(Context, Intent)}, rather stop the
2833 * contain an extra {@link #EXTRA_RESTRICTIONS_INTENT}, which is of type <code>Intent</code>.
3107 * Callers must include {@link #CATEGORY_OPENABLE} in the Intent to obtain
3143 * Callers must include {@link #CATEGORY_OPENABLE} in the Intent to obtain
3287 * Intent when initiating an action -- it is for use in intent filters
3295 * and clicks on a link in the text, the Intent generated execute that
3300 * matching Intent.
3493 * <p>NOTE: This should not be used as the primary key of an Intent,
3497 * Intent with this category in the selector.</p>
3505 * <p>NOTE: This should not be used as the primary key of an Intent,
3509 * Intent with this category in the selector.</p>
3517 * <p>NOTE: This should not be used as the primary key of an Intent,
3521 * Intent with this category in the selector.</p>
3529 * <p>NOTE: This should not be used as the primary key of an Intent,
3533 * Intent with this category in the selector.</p>
3541 * <p>NOTE: This should not be used as the primary key of an Intent,
3545 * Intent with this category in the selector.</p>
3554 * <p>NOTE: This should not be used as the primary key of an Intent,
3558 * Intent with this category in the selector.</p>
3566 * <p>NOTE: This should not be used as the primary key of an Intent,
3570 * Intent with this category in the selector.</p>
3578 * <p>NOTE: This should not be used as the primary key of an Intent,
3582 * Intent with this category in the selector.</p>
3591 * <p>NOTE: This should not be used as the primary key of an Intent,
3595 * Intent with this category in the selector.</p>
3613 * A constant CharSequence that is associated with the Intent, used with
3622 * A constant String that is associated with the Intent, used with
3630 * A content: URI holding a stream of data associated with the Intent,
3656 * An Intent describing the choices you would like shown with
3678 * An Intent[] describing additional, alternate choices you would like shown with
3750 * {@link #fillIn(Intent, int) filled in} to that {@link IntentSender} and sent
3757 * to match and fill in the final Intent or ChooserTarget before starting it.
3758 * The supplied intent must {@link #filterEquals(Intent) match} one of the intents from
3777 * A Parcelable[] of {@link Intent} or
3846 * triggered the creation of the Intent it is in.
3868 * Used as a boolean extra field in {@link android.content.Intent#ACTION_PACKAGE_REMOVED} or
3869 * {@link android.content.Intent#ACTION_PACKAGE_CHANGED} intents to override the default action
3876 * {@link android.content.Intent#ACTION_NEW_OUTGOING_CALL}, or the actual
3877 * number to call in a {@link android.content.Intent#ACTION_CALL}.
3882 * Used as an int extra field in {@link android.content.Intent#ACTION_UID_REMOVED}
3884 * extra in {@link android.content.Intent#ACTION_PACKAGE_REMOVED} or
3885 * {@link android.content.Intent#ACTION_PACKAGE_CHANGED} for the same
3897 * Used as a boolean extra field in {@link android.content.Intent#ACTION_PACKAGE_REMOVED}
3906 * Used as a boolean extra field in {@link android.content.Intent#ACTION_PACKAGE_REMOVED}
3914 * Used as a boolean extra field in {@link android.content.Intent#ACTION_PACKAGE_REMOVED}
3932 * Used as an int extra field in {@link android.content.Intent#ACTION_DOCK_EVENT}
3934 * {@link android.content.Intent#EXTRA_DOCK_STATE_UNDOCKED},
3935 * {@link android.content.Intent#EXTRA_DOCK_STATE_DESK}, or
3936 * {@link android.content.Intent#EXTRA_DOCK_STATE_CAR}, or
3937 * {@link android.content.Intent#EXTRA_DOCK_STATE_LE_DESK}, or
3938 * {@link android.content.Intent#EXTRA_DOCK_STATE_HE_DESK}.
3943 * Used as an int value for {@link android.content.Intent#EXTRA_DOCK_STATE}
3949 * Used as an int value for {@link android.content.Intent#EXTRA_DOCK_STATE}
3955 * Used as an int value for {@link android.content.Intent#EXTRA_DOCK_STATE}
3961 * Used as an int value for {@link android.content.Intent#EXTRA_DOCK_STATE}
3967 * Used as an int value for {@link android.content.Intent#EXTRA_DOCK_STATE}
3999 * This field is part of {@link android.content.Intent#ACTION_PACKAGE_CHANGED},
4009 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE},
4010 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE},
4011 * {@link android.content.Intent#ACTION_PACKAGES_SUSPENDED},
4012 * {@link android.content.Intent#ACTION_PACKAGES_UNSUSPENDED}
4020 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE},
4021 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE}
4067 * of the result Intent.
4204 // Intent flags (see mFlags variable).
4226 return (modeFlags & (Intent.FLAG_GRANT_READ_URI_PERMISSION
4227 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION)) != 0;
4231 * If set, the recipient of this Intent will be granted permission to
4232 * perform read operations on the URI in the Intent's data and any URIs
4233 * specified in its ClipData. When applying to an Intent's ClipData,
4235 * in Intent items will be granted; only the grant flags of the top-level
4236 * Intent are used.
4240 * If set, the recipient of this Intent will be granted permission to
4241 * perform write operations on the URI in the Intent's data and any URIs
4242 * specified in its ClipData. When applying to an Intent's ClipData,
4244 * in Intent items will be granted; only the grant flags of the top-level
4245 * Intent are used.
4249 * Can be set by the caller to indicate that this Intent is coming from
4369 * search through existing tasks for ones matching this Intent. Only if no such
4380 * Intent, regardless of whether there is already an existing task running
4404 * all of the other activities on top of it will be closed and this Intent
4405 * will be delivered to the (now on top) old activity as a new Intent.
4408 * If D calls startActivity() with an Intent that resolves to the component
4410 * Intent, resulting in the stack now being: A, B.
4419 * Intent will be delivered to the current instance's onNewIntent().
4484 * by this Intent. Through the use of this flag, or its equivalent attribute,
4490 * preferred over the Intent flag described here. The attribute form allows the
4492 * whereas using this flag requires each Intent that launches the Activity to specify it.
4532 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
4537 * If D calls startActivity() with an Intent that resolves to the component
4546 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
4558 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
4566 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
4605 * by {@link Intent#filterEquals(Intent) Intent.filterEquals} returning
4682 * Intent vs. all others that should be treated as raw URIs. When used
4696 * android-app://{package_id}[/{scheme}[/{host}[/{path}]]][#Intent;{...}]</pre>
4700 * The final #Intent; fragment can be used without a scheme, host, or path.
4705 * <p>Some examples of how this scheme maps to Intent objects:</p>
4710 * <tr><th>URI</th> <th>Intent</th></tr>
4734 * <tr><td><code>android-app://com.example.app/<br />#Intent;action=com.example.MY_ACTION;end</code></td>
4740 * <tr><td><code>android-app://com.example.app/http/example.com/foo?1234<br />#Intent;action=com.example.MY_ACTION;end</code></td>
4747 * <tr><td><code>android-app://com.example.app/<br />#Intent;action=com.example.MY_ACTION;<br />i.some_int=100;S.some_str=hello;end</code></td>
4764 * generated Intent can not cause unexpected data access to happen.
4784 private Intent mSelector;
4793 public Intent() {
4799 public Intent(Intent o) {
4817 this.mSelector = new Intent(o.mSelector);
4826 return new Intent(this);
4829 private Intent(Intent o, boolean all) {
4841 * Make a clone of only the parts of the Intent that are relevant for
4844 public Intent cloneFilter() {
4845 return new Intent(this, false);
4856 * @param action The Intent action, such as ACTION_VIEW.
4858 public Intent(String action) {
4875 * @param action The Intent action, such as ACTION_VIEW.
4876 * @param uri The Intent data URI.
4878 public Intent(String action, Uri uri) {
4897 * @see #Intent(String, android.net.Uri , Context, Class)
4899 public Intent(Context packageContext, Class<?> cls) {
4905 * This is equivalent to using {@link #Intent(String, android.net.Uri)} to
4906 * construct the Intent and then calling {@link #setClass} to set its
4915 * @param action The Intent action, such as ACTION_VIEW.
4916 * @param uri The Intent data URI.
4921 * @see #Intent(String, android.net.Uri)
4922 * @see #Intent(Context, Class)
4926 public Intent(String action, Uri uri,
4935 * is the Intent that is started when the application's is launched from
4937 * same way, it is important that they use an Intent structured the same
4940 * <p>The returned Intent has the given Activity component as its explicit
4944 * to do that through {@link #addFlags(int)} on the returned Intent.
4946 * @param mainActivity The main activity component that this Intent will
4948 * @return Returns a newly created Intent that can be used to launch the
4954 public static Intent makeMainActivity(ComponentName mainActivity) {
4955 Intent intent = new Intent(ACTION_MAIN);
4962 * Make an Intent for the main activity of an application, without
4964 * the activity. This results in a final Intent that is structured
4967 * same way, it is important that they use an Intent structured the same
4970 * <p>The returned Intent has {@link #ACTION_MAIN} as its action, and includes the
4973 * to do that through {@link #addFlags(int)} on the returned Intent.
4975 * @param selectorAction The action name of the Intent's selector.
4976 * @param selectorCategory The name of a category to add to the Intent's
4978 * @return Returns a newly created Intent that can be used to launch the
4981 * @see #setSelector(Intent)
4983 public static Intent makeMainSelectorActivity(String selectorAction,
4985 Intent intent = new Intent(ACTION_MAIN);
4987 Intent selector = new Intent();
4995 * Make an Intent that can be used to re-launch an application's task
5004 * @return Returns a newly created Intent that can be used to relaunch the
5007 public static Intent makeRestartActivityTask(ComponentName mainActivity) {
5008 Intent intent = makeMainActivity(mainActivity);
5009 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
5010 | Intent.FLAG_ACTIVITY_CLEAR_TASK);
5019 public static Intent getIntent(String uri) throws URISyntaxException {
5026 * {@link #toUri}. If the Intent was not generate by toUri(), its data
5032 * @param uri The URI to turn into an Intent.
5036 * @return Intent The newly created Intent object.
5039 * it bad (as parsed by the Uri class) or the Intent data within the
5044 public static Intent parseUri(String uri, int flags) throws URISyntaxException {
5052 Intent intent = new Intent(ACTION_VIEW);
5066 return new Intent(ACTION_VIEW, Uri.parse(uri));
5069 // old format Intent URI
5070 } else if (!uri.startsWith("#Intent;", i)) {
5079 Intent intent = new Intent(ACTION_VIEW);
5080 Intent baseIntent = intent;
5089 i += 8; // length of "#Intent;"
5094 // loop over contents of Intent, all name=value;
5153 intent = new Intent();
5181 // The Intent had a selector; fix it up.
5206 // Target the Intent at the given package name always.
5254 throw new URISyntaxException(uri, "illegal Intent URI format", i);
5258 public static Intent getIntentOld(String uri) throws URISyntaxException {
5262 private static Intent getIntentOld(String uri, int flags) throws URISyntaxException {
5263 Intent intent;
5281 intent = new Intent(action);
5415 intent = new Intent(ACTION_VIEW, Uri.parse(uri));
5427 public static Intent parseCommandArgs(ShellCommand cmd, CommandOptionHandler optionHandler)
5429 Intent intent = new Intent();
5430 Intent baseIntent = intent;
5650 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
5653 intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
5656 intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);
5659 intent.addFlags(Intent.FLAG_GRANT_PREFIX_URI_PERMISSION);
5662 intent.addFlags(Intent.FLAG_EXCLUDE_STOPPED_PACKAGES);
5665 intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
5668 intent.addFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);
5671 intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
5674 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
5677 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
5680 intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
5683 intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY);
5686 intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
5689 intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
5692 intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
5695 intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);
5698 intent.addFlags(Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP);
5701 intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
5704 intent.addFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
5707 intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
5710 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
5713 intent.addFlags(Intent.FLAG_ACTIVITY_TASK_ON_HOME);
5716 intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
5719 intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
5722 intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
5726 intent = new Intent();
5751 // have been supplied for the main Intent, then we can
5755 baseIntent = new Intent(Intent.ACTION_MAIN);
5756 baseIntent.addCategory(Intent.CATEGORY_LAUNCHER);
5761 baseIntent = Intent.parseUri(arg, Intent.URI_INTENT_SCHEME
5762 | Intent.URI_ANDROID_APP_SCHEME | Intent.URI_ALLOW_UNSAFE);
5764 // The argument is a component name. Build an Intent to launch
5766 baseIntent = new Intent(Intent.ACTION_MAIN);
5767 baseIntent.addCategory(Intent.CATEGORY_LAUNCHER);
5771 baseIntent = new Intent(Intent.ACTION_MAIN);
5772 baseIntent.addCategory(Intent.CATEGORY_LAUNCHER);
5786 intent.fillIn(baseIntent, Intent.FILL_IN_COMPONENT | Intent.FILL_IN_SELECTOR);
6012 * Return the specific selector associated with this Intent. If there is
6017 public Intent getSelector() {
6022 * Return the {@link ClipData} associated with this Intent. If there is
6038 * any Parcelable values from the extras of this Intent.
6059 * Returns true if the Intent's extras contain a parcelled file descriptor.
6060 * @return true if the Intent contains a parcelled file descriptor.
6600 * Retrieve the application package name this Intent is limited to. When
6601 * resolving an Intent, if non-null this limits the resolution to only
6604 * @return The name of the application package for the Intent.
6645 * <p>The activity must handle the {@link Intent#CATEGORY_DEFAULT} Intent
6675 * @param pm The package manager with which to resolve the Intent.
6701 * Resolve the Intent into an {@link ActivityInfo}
6707 * @param pm The package manager with which to resolve the Intent.
6738 * multiple potential matches to the Intent. Returns null if
6774 * @return Returns the same Intent object, for chaining multiple calls
6779 public Intent setAction(String action) {
6798 * @return Returns the same Intent object, for chaining multiple calls
6805 public Intent setData(Uri data) {
6826 * @return Returns the same Intent object, for chaining multiple calls
6833 public Intent setDataAndNormalize(Uri data) {
6854 * @return Returns the same Intent object, for chaining multiple calls
6862 public Intent setType(String type) {
6881 * setType(Intent.normalizeMimeType(type))
6886 * @return Returns the same Intent object, for chaining multiple calls
6893 public Intent setTypeAndNormalize(String type) {
6913 * @return Returns the same Intent object, for chaining multiple calls
6922 public Intent setDataAndType(Uri data, String type) {
6938 * setDataAndType(data.normalize(), Intent.normalizeMimeType(type))
6944 * @return Returns the same Intent object, for chaining multiple calls
6953 public Intent setDataAndTypeAndNormalize(Uri data, String type) {
6964 * predefined Intent categories, or a custom category in your own
6967 * @return Returns the same Intent object, for chaining multiple calls
6973 public Intent addCategory(String category) {
6998 * Set a selector for this Intent. This is a modification to the kinds of
6999 * things the Intent will match. If the selector is set, it will be used
7000 * when trying to find entities that can handle the Intent, instead of the
7001 * main contents of the Intent. This allows you build an Intent containing
7006 * Intent that will launch the Browser application. However, the correct
7012 * Instead, you can build an Intent with the MAIN action (but no ComponentName
7017 * {@link #filterEquals(Intent)} and {@link #filterHashCode()}. This is part of the
7019 * of the Intent, just what kinds of things will be matched against it
7023 * the same base Intent.</p>
7025 * @param selector The desired selector Intent; set to null to not use
7028 public void setSelector(Intent selector) {
7031 "Intent being set as a selector of itself");
7041 * Set a {@link ClipData} associated with this Intent. This replaces any
7044 * <p>The ClipData in an intent is not used for Intent matching or other
7046 * additional data with the Intent. The main feature of using this over
7050 * you want to transmit an Intent containing multiple <code>content:</code>
7056 * of the main Intent are respected, and will be applied to all Uri or
7057 * Intent items in the clip (or sub-items of the clip).
7060 * directly used by Intent. Applications should generally rely on the
7061 * MIME type of the Intent itself, not what it may find in the ClipData.
7062 * A common practice is to construct a ClipData for use with an Intent
7093 * @return Returns the same Intent object, for chaining multiple calls
7100 public Intent putExtra(String name, boolean value) {
7116 * @return Returns the same Intent object, for chaining multiple calls
7123 public Intent putExtra(String name, byte value) {
7139 * @return Returns the same Intent object, for chaining multiple calls
7146 public Intent putExtra(String name, char value) {
7162 * @return Returns the same Intent object, for chaining multiple calls
7169 public Intent putExtra(String name, short value) {
7185 * @return Returns the same Intent object, for chaining multiple calls
7192 public Intent putExtra(String name, int value) {
7208 * @return Returns the same Intent object, for chaining multiple calls
7215 public Intent putExtra(String name, long value) {
7231 * @return Returns the same Intent object, for chaining multiple calls
7238 public Intent putExtra(String name, float value) {
7254 * @return Returns the same Intent object, for chaining multiple calls
7261 public Intent putExtra(String name, double value) {
7277 * @return Returns the same Intent object, for chaining multiple calls
7284 public Intent putExtra(String name, String value) {
7300 * @return Returns the same Intent object, for chaining multiple calls
7307 public Intent putExtra(String name, CharSequence value) {
7323 * @return Returns the same Intent object, for chaining multiple calls
7330 public Intent putExtra(String name, Parcelable value) {
7346 * @return Returns the same Intent object, for chaining multiple calls
7353 public Intent putExtra(String name, Parcelable[] value) {
7369 * @return Returns the same Intent object, for chaining multiple calls
7376 public Intent putParcelableArrayListExtra(String name, ArrayList<? extends Parcelable> value) {
7392 * @return Returns the same Intent object, for chaining multiple calls
7399 public Intent putIntegerArrayListExtra(String name, ArrayList<Integer> value) {
7415 * @return Returns the same Intent object, for chaining multiple calls
7422 public Intent putStringArrayListExtra(String name, ArrayList<String> value) {
7438 * @return Returns the same Intent object, for chaining multiple calls
7445 public Intent putCharSequenceArrayListExtra(String name, ArrayList<CharSequence> value) {
7461 * @return Returns the same Intent object, for chaining multiple calls
7468 public Intent putExtra(String name, Serializable value) {
7484 * @return Returns the same Intent object, for chaining multiple calls
7491 public Intent putExtra(String name, boolean[] value) {
7507 * @return Returns the same Intent object, for chaining multiple calls
7514 public Intent putExtra(String name, byte[] value) {
7530 * @return Returns the same Intent object, for chaining multiple calls
7537 public Intent putExtra(String name, short[] value) {
7553 * @return Returns the same Intent object, for chaining multiple calls
7560 public Intent putExtra(String name, char[] value) {
7576 * @return Returns the same Intent object, for chaining multiple calls
7583 public Intent putExtra(String name, int[] value) {
7599 * @return Returns the same Intent object, for chaining multiple calls
7606 public Intent putExtra(String name, long[] value) {
7622 * @return Returns the same Intent object, for chaining multiple calls
7629 public Intent putExtra(String name, float[] value) {
7645 * @return Returns the same Intent object, for chaining multiple calls
7652 public Intent putExtra(String name, double[] value) {
7668 * @return Returns the same Intent object, for chaining multiple calls
7675 public Intent putExtra(String name, String[] value) {
7691 * @return Returns the same Intent object, for chaining multiple calls
7698 public Intent putExtra(String name, CharSequence[] value) {
7714 * @return Returns the same Intent object, for chaining multiple calls
7721 public Intent putExtra(String name, Bundle value) {
7737 * @return Returns the same Intent object, for chaining multiple calls
7748 public Intent putExtra(String name, IBinder value) {
7763 public Intent putExtras(Intent src) {
7784 public Intent putExtras(Bundle extras) {
7793 * Completely replace the extras in the Intent with the extras in the
7794 * given Intent.
7796 * @param src The exact extras contained in this Intent are copied
7799 public Intent replaceExtras(Intent src) {
7805 * Completely replace the extras in the Intent with the given Bundle of
7808 * @param extras The new set of extras in the Intent, or null to erase
7811 public Intent replaceExtras(Bundle extras) {
7832 * here depend on the type of component being executed by the Intent,
7836 * {@link Context#sendBroadcast(Intent) Context.sendBroadcast()}.
7845 * @return Returns the same Intent object, for chaining multiple calls
7877 public Intent setFlags(int flags) {
7888 * @return Returns the same Intent object, for chaining multiple calls
7893 public Intent addFlags(int flags) {
7900 * the components this Intent will resolve to. If left to the default
7902 * If non-null, the Intent can only match the components in the given
7908 * @return Returns the same Intent object, for chaining multiple calls
7914 public Intent setPackage(String packageName) {
7927 * type, categories) in the Intent. If this class is defined, the
7937 * @return Returns the same Intent object, for chaining multiple calls
7946 public Intent setComponent(ComponentName component) {
7958 * that will be used as the component for this Intent.
7960 * @return Returns the same Intent object, for chaining multiple calls
7966 public Intent setClassName(Context packageContext, String className) {
7978 * that will be used as the component for this Intent.
7980 * @return Returns the same Intent object, for chaining multiple calls
7986 public Intent setClassName(String packageName, String className) {
8000 * @return Returns the same Intent object, for chaining multiple calls
8005 public Intent setClass(Context packageContext, Class<?> cls) {
8089 * being defined, the following pieces of data in the Intent are
8101 * <li> selector, as set by {@link #setSelector(Intent)}.
8117 * <p>For example, consider Intent A with {data="foo", categories="bar"}
8118 * and Intent B with {action="gotit", data-type="some/thing",
8121 * <p>Calling A.fillIn(B, Intent.FILL_IN_DATA) will result in A now
8125 * @param other Another Intent whose values are to be used to fill in
8136 public int fillIn(Intent other, @FillInFlags int flags) {
8171 mSelector = new Intent(other.mSelector);
8212 Log.w("Intent", "Failure filling in extras", e);
8223 * Wrapper class holding an Intent and implementing comparisons on it for
8226 * simple calls to {@link Intent#filterEquals(Intent)} filterEquals()} and
8227 * {@link android.content.Intent#filterHashCode()} filterHashCode()}
8228 * on the wrapped Intent.
8231 private final Intent mIntent;
8234 public FilterComparison(Intent intent) {
8240 * Return the Intent that this FilterComparison represents.
8241 * @return Returns the Intent held by the FilterComparison. Do
8244 public Intent getIntent() {
8251 Intent other = ((FilterComparison)obj).mIntent;
8269 * @param other The other Intent to compare against.
8274 public boolean filterEquals(Intent other) {
8323 b.append("Intent { ");
8334 b.append("Intent { ");
8345 b.append("Intent { ");
8475 * Convert this Intent into a String holding a URI representation of it.
8478 * Intent's data as the base URI, with an additional fragment describing
8481 * <p>You can convert the returned string back to an Intent with
8488 * of the Intent.
8495 "Intent must include an explicit package name to build an android-app: "
8527 toUriFragment(uri, null, scheme == null ? Intent.ACTION_MAIN : Intent.ACTION_VIEW,
8560 toUriFragment(uri, scheme, Intent.ACTION_VIEW, null, flags);
8580 uri.append("#Intent;");
8690 public static final Parcelable.Creator<Intent> CREATOR
8691 = new Parcelable.Creator<Intent>() {
8692 public Intent createFromParcel(Parcel in) {
8693 return new Intent(in);
8695 public Intent[] newArray(int size) {
8696 return new Intent[size];
8701 protected Intent(Parcel in) {
8729 mSelector = new Intent(in);
8741 * an Intent object. The given XML parser should be located at the tag
8753 * @return An Intent object matching the XML data.
8757 public static Intent parseIntent(Resources resources, XmlPullParser parser, AttributeSet attrs)
8759 Intent intent = new Intent();
8762 com.android.internal.R.styleable.Intent);
8839 public static Intent restoreFromXml(XmlPullParser in) throws IOException,
8841 Intent intent = new Intent();
8859 Log.e("Intent", "restoreFromXml: unknown attribute=" + attrName);
8875 Log.w("Intent", "restoreFromXml: unknown name=" + name);
8897 * be normalized before they are used to create an Intent.
8919 * Prepare this {@link Intent} to leave an app process.
8930 * Prepare this {@link Intent} to leave an app process.
8965 mData.checkFileUriExposed("Intent.getData()");
9053 final Intent intent = getParcelableExtra(EXTRA_INTENT);
9063 final Intent intent = (Intent) intents[i];