diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-09-25 09:36:28 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2012-09-25 09:36:32 -0700 |
commit | 7951c459aefeb012638477b762e19b792ecbe009 (patch) | |
tree | 7a9625e8186f9e040a2daa3121f4189feb1685ac /core/java/android/content/Context.java | |
parent | a5e1d21f566c8df750d766c76f6a99432a703c5e (diff) | |
parent | ea7e91514ee1968d15713e82a5cca745e2c46a05 (diff) | |
download | frameworks_base-7951c459aefeb012638477b762e19b792ecbe009.zip frameworks_base-7951c459aefeb012638477b762e19b792ecbe009.tar.gz frameworks_base-7951c459aefeb012638477b762e19b792ecbe009.tar.bz2 |
Merge into jb-mr1-dev
Change-Id: Ifc2328e30a52c2baebc1322c9b161104dcf21618
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r-- | core/java/android/content/Context.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 9162d29..ac36cf7 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -974,6 +974,36 @@ public abstract class Context { public abstract void startActivities(Intent[] intents, Bundle options); /** + * @hide + * Launch multiple new activities. This is generally the same as calling + * {@link #startActivity(Intent)} for the first Intent in the array, + * that activity during its creation calling {@link #startActivity(Intent)} + * for the second entry, etc. Note that unlike that approach, generally + * none of the activities except the last in the array will be created + * at this point, but rather will be created when the user first visits + * them (due to pressing back from the activity on top). + * + * <p>This method throws {@link ActivityNotFoundException} + * if there was no Activity found for <em>any</em> given Intent. In this + * case the state of the activity stack is undefined (some Intents in the + * list may be on it, some not), so you probably want to avoid such situations. + * + * @param intents An array of Intents to be started. + * @param options Additional options for how the Activity should be started. + * @param userHandle The user for whom to launch the activities + * See {@link android.content.Context#startActivity(Intent, Bundle) + * Context.startActivity(Intent, Bundle)} for more details. + * + * @throws ActivityNotFoundException + * + * @see {@link #startActivities(Intent[])} + * @see PackageManager#resolveActivity + */ + public void startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { + throw new RuntimeException("Not implemented. Must override in a subclass."); + } + + /** * Same as {@link #startIntentSender(IntentSender, Intent, int, int, int, Bundle)} * with no options specified. * |