@@ -856,8 +856,10 @@ public abstract SQLiteDatabase openOrCreateDatabase(String name,
856856 public abstract void startActivity (Intent intent );
857857
858858 /**
859- * Same as {@link #startActivity(Intent)}, but for a specific user. It requires holding
860- * the {@link android.Manifest.permission#INTERACT_ACROSS_USERS_FULL} permission.
859+ * Version of {@link #startActivity(Intent)} that allows you to specify the
860+ * user the activity will be started for. This is not available to applications
861+ * that are not pre-installed on the system image. Using it requires holding
862+ * the INTERACT_ACROSS_USERS_FULL permission.
861863 * @param intent The description of the activity to start.
862864 * @param user The UserHandle of the user to start this activity for.
863865 * @throws ActivityNotFoundException
@@ -895,8 +897,10 @@ public void startActivityAsUser(Intent intent, UserHandle user) {
895897 public abstract void startActivity (Intent intent , Bundle options );
896898
897899 /**
898- * Same as {@link #startActivity(Intent, Bundle)}, but for a specific user. It requires holding
899- * the {@link android.Manifest.permission#INTERACT_ACROSS_USERS_FULL} permission.
900+ * Version of {@link #startActivity(Intent, Bundle)} that allows you to specify the
901+ * user the activity will be started for. This is not available to applications
902+ * that are not pre-installed on the system image. Using it requires holding
903+ * the INTERACT_ACROSS_USERS_FULL permission.
900904 * @param intent The description of the activity to start.
901905 * @param options Additional options for how the Activity should be started.
902906 * May be null if there are no options. See {@link android.app.ActivityOptions}
@@ -1118,21 +1122,21 @@ public abstract void sendOrderedBroadcast(Intent intent,
11181122 Bundle initialExtras );
11191123
11201124 /**
1121- * Same as {@link #sendBroadcast(Intent)}, but for a specific user. This broadcast
1122- * can only be sent to receivers that are part of the calling application. It
1123- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1124- * permission.
1125+ * Version of {@link #sendBroadcast(Intent)} that allows you to specify the
1126+ * user the broadcast will be sent to. This is not available to applications
1127+ * that are not pre-installed on the system image. Using it requires holding
1128+ * the INTERACT_ACROSS_USERS permission.
11251129 * @param intent The intent to broadcast
11261130 * @param user UserHandle to send the intent to.
11271131 * @see #sendBroadcast(Intent)
11281132 */
11291133 public abstract void sendBroadcastAsUser (Intent intent , UserHandle user );
11301134
11311135 /**
1132- * Same as {@link #sendBroadcast(Intent, String)}, but for a specific user. This broadcast
1133- * can only be sent to receivers that are part of the calling application. It
1134- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1135- * permission.
1136+ * Version of {@link #sendBroadcast(Intent, String)} that allows you to specify the
1137+ * user the broadcast will be sent to. This is not available to applications
1138+ * that are not pre-installed on the system image. Using it requires holding
1139+ * the INTERACT_ACROSS_USERS permission.
11361140 *
11371141 * @param intent The Intent to broadcast; all receivers matching this
11381142 * Intent will receive the broadcast.
@@ -1147,12 +1151,12 @@ public abstract void sendBroadcastAsUser(Intent intent, UserHandle user,
11471151 String receiverPermission );
11481152
11491153 /**
1150- * Same as
1151- * {@link #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)},
1152- * but for a specific user. This broadcast
1153- * can only be sent to receivers that are part of the calling application. It
1154- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1155- * permission.
1154+ * Version of
1155+ * {@link #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)}
1156+ * that allows you to specify the
1157+ * user the broadcast will be sent to. This is not available to applications
1158+ * that are not pre-installed on the system image. Using it requires holding
1159+ * the INTERACT_ACROSS_USERS permission.
11561160 *
11571161 * <p>See {@link BroadcastReceiver} for more information on Intent broadcasts.
11581162 *
@@ -1261,11 +1265,10 @@ public abstract void sendStickyOrderedBroadcast(Intent intent,
12611265 public abstract void removeStickyBroadcast (Intent intent );
12621266
12631267 /**
1264- * Same as {@link #sendStickyBroadcast(Intent)},
1265- * but for a specific user. This broadcast
1266- * can only be sent to receivers that are part of the calling application. It
1267- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1268- * permission.
1268+ * Version of {@link #sendStickyBroadcast(Intent)} that allows you to specify the
1269+ * user the broadcast will be sent to. This is not available to applications
1270+ * that are not pre-installed on the system image. Using it requires holding
1271+ * the INTERACT_ACROSS_USERS permission.
12691272 *
12701273 * @param intent The Intent to broadcast; all receivers matching this
12711274 * Intent will receive the broadcast, and the Intent will be held to
@@ -1277,12 +1280,12 @@ public abstract void sendStickyOrderedBroadcast(Intent intent,
12771280 public abstract void sendStickyBroadcastAsUser (Intent intent , UserHandle user );
12781281
12791282 /**
1280- * Same as
1281- * {@link #sendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)
1282- * but for a specific user. This broadcast
1283- * can only be sent to receivers that are part of the calling application. It
1284- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1285- * permission.
1283+ * Version of
1284+ * {@link #sendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)}
1285+ * that allows you to specify the
1286+ * user the broadcast will be sent to. This is not available to applications
1287+ * that are not pre-installed on the system image. Using it requires holding
1288+ * the INTERACT_ACROSS_USERS permission.
12861289 *
12871290 * <p>See {@link BroadcastReceiver} for more information on Intent broadcasts.
12881291 *
@@ -1309,12 +1312,10 @@ public abstract void sendStickyOrderedBroadcastAsUser(Intent intent,
13091312 Bundle initialExtras );
13101313
13111314 /**
1312- * Same as
1313- * {@link #sendStickyOrderedBroadcast(Intent, BroadcastReceiver, Handler, int, String, Bundle)
1314- * but for a specific user. This broadcast
1315- * can only be sent to receivers that are part of the calling application. It
1316- * requires holding the {@link android.Manifest.permission#INTERACT_ACROSS_USERS}
1317- * permission.
1315+ * Version of {@link #removeStickyBroadcast(Intent)} that allows you to specify the
1316+ * user the broadcast will be sent to. This is not available to applications
1317+ * that are not pre-installed on the system image. Using it requires holding
1318+ * the INTERACT_ACROSS_USERS permission.
13181319 *
13191320 * <p>You must hold the {@link android.Manifest.permission#BROADCAST_STICKY}
13201321 * permission in order to use this API. If you do not hold that
0 commit comments