diff options
author | Amith Yamasani <yamasani@google.com> | 2012-08-03 13:09:11 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-08 16:52:53 -0700 |
commit | 8264408f5995534f8e3147b001664ea0df52aaa5 (patch) | |
tree | e6e963d2ec701047872bf641b28888a93c7b866a /core/java/android/content/Context.java | |
parent | fb11ffa2a04f0a6b1291cd7ffc68032fcc322312 (diff) | |
download | frameworks_base-8264408f5995534f8e3147b001664ea0df52aaa5.zip frameworks_base-8264408f5995534f8e3147b001664ea0df52aaa5.tar.gz frameworks_base-8264408f5995534f8e3147b001664ea0df52aaa5.tar.bz2 |
Start the correct settings from the status bar.
Added a new method to Context: startActivityAsUser() requiring the
INTERACT_ACROSS_USERS_FULL permission.
Show the correct Recents list, based on current user.
Added a getRecentTasksForUser() in ActivityManager. Hidden and requires
the INTERACT_ACROSS_USERS_FULL permission.
Change-Id: If5b56465efdd3ead36601a3b51ed4af157bbf35c
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r-- | core/java/android/content/Context.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index fca1d55..5a7a989 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -851,6 +851,18 @@ public abstract class Context { public abstract void startActivity(Intent intent); /** + * Same as {@link #startActivity(Intent)}, but for a specific user. It requires holding + * the {@link android.Manifest.permission#INTERACT_ACROSS_USERS_FULL} permission. + * @param intent The description of the activity to start. + * @param userId The user id of the user to start this activity for. + * @throws ActivityNotFoundException + * @hide + */ + public void startActivityAsUser(Intent intent, int userId) { + throw new RuntimeException("Not implemented. Must override in a subclass."); + } + + /** * Launch a new activity. You will not receive any information about when * the activity exits. * |