Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11603,6 +11603,7 @@ package android.content { method public static android.content.IntentSender readIntentSenderOrNullFromParcel(android.os.Parcel); method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler) throws android.content.IntentSender.SendIntentException; method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler, String) throws android.content.IntentSender.SendIntentException; method @FlaggedApi("com.android.window.flags.bal_send_intent_with_options") public void sendIntent(@Nullable android.content.Context, int, @Nullable android.content.Intent, @Nullable String, @Nullable android.os.Bundle, @Nullable java.util.concurrent.Executor, @Nullable android.content.IntentSender.OnFinished) throws android.content.IntentSender.SendIntentException; method public static void writeIntentSenderOrNullToParcel(android.content.IntentSender, android.os.Parcel); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.content.IntentSender> CREATOR; core/java/android/content/IntentSender.java +44 −39 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.content; import android.annotation.FlaggedApi; import android.annotation.Nullable; import android.app.ActivityManager; import android.app.ActivityManager.PendingIntentInfo; Loading @@ -32,6 +33,10 @@ import android.os.RemoteException; import android.os.UserHandle; import android.util.AndroidException; import com.android.window.flags.Flags; import java.util.concurrent.Executor; /** * A description of an Intent and target action to perform with it. * The returned object can be Loading Loading @@ -114,15 +119,15 @@ public class IntentSender implements Parcelable { implements Runnable { private final IntentSender mIntentSender; private final OnFinished mWho; private final Handler mHandler; private final Executor mExecutor; private Intent mIntent; private int mResultCode; private String mResultData; private Bundle mResultExtras; FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { FinishedDispatcher(IntentSender pi, OnFinished who, Executor executor) { mIntentSender = pi; mWho = who; mHandler = handler; mExecutor = executor; } public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean serialized, boolean sticky, int sendingUser) { Loading @@ -130,10 +135,10 @@ public class IntentSender implements Parcelable { mResultCode = resultCode; mResultData = data; mResultExtras = extras; if (mHandler == null) { if (mExecutor == null) { run(); } else { mHandler.post(this); mExecutor.execute(this); } } public void run() { Loading @@ -147,16 +152,16 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * completed, or {@code null} for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * * Loading @@ -165,8 +170,8 @@ public class IntentSender implements Parcelable { */ public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler) throws SendIntentException { sendIntent(context, code, intent, onFinished, handler, null, SEND_INTENT_DEFAULT_OPTIONS); sendIntent(context, code, intent, null, SEND_INTENT_DEFAULT_OPTIONS, handler == null ? null : handler::post, onFinished); } /** Loading @@ -174,22 +179,22 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * completed, or {@code null} for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * @param requiredPermission Name of permission that a recipient of the PendingIntent * is required to hold. This is only valid for broadcast intents, and * corresponds to the permission argument in * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}. * If null, no permission is required. * If {@code null}, no permission is required. * * * @throws SendIntentException Throws CanceledIntentException if the IntentSender Loading @@ -198,8 +203,8 @@ public class IntentSender implements Parcelable { public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission) throws SendIntentException { sendIntent(context, code, intent, onFinished, handler, requiredPermission, SEND_INTENT_DEFAULT_OPTIONS); sendIntent(context, code, intent, requiredPermission, SEND_INTENT_DEFAULT_OPTIONS, handler == null ? null : handler::post, onFinished); } /** Loading @@ -207,32 +212,32 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * completed, or {@code null} for no callback. * @param executor Executor identifying the thread on which the callback * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * @param requiredPermission Name of permission that a recipient of the PendingIntent * is required to hold. This is only valid for broadcast intents, and * corresponds to the permission argument in * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}. * If null, no permission is required. * If {@code null}, no permission is required. * @param options Additional options the caller would like to provide to modify the sending * behavior. May be built from an {@link ActivityOptions} to apply to an activity start. * behavior. Typically built from using {@link ActivityOptions} to apply to an activity start. * * @throws SendIntentException Throws CanceledIntentException if the IntentSender * is no longer allowing more intents to be sent through it. * @hide */ public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission, @Nullable Bundle options) @FlaggedApi(Flags.FLAG_BAL_SEND_INTENT_WITH_OPTIONS) public void sendIntent(@Nullable Context context, int code, @Nullable Intent intent, @Nullable String requiredPermission, @Nullable Bundle options, @Nullable Executor executor, @Nullable OnFinished onFinished) throws SendIntentException { try { String resolvedType = intent != null ? Loading @@ -243,7 +248,7 @@ public class IntentSender implements Parcelable { int res = ActivityManager.getService().sendIntentSender(app, mTarget, mWhitelistToken, code, intent, resolvedType, onFinished != null ? new FinishedDispatcher(this, onFinished, handler) ? new FinishedDispatcher(this, onFinished, executor) : null, requiredPermission, options); if (res < 0) { Loading @@ -268,7 +273,7 @@ public class IntentSender implements Parcelable { * sending the Intent. The returned string is supplied by the system, so * that an application can not spoof its package. * * @return The package name of the PendingIntent, or null if there is * @return The package name of the PendingIntent, or {@code null} if there is * none associated with it. */ public String getCreatorPackage() { Loading Loading @@ -296,7 +301,7 @@ public class IntentSender implements Parcelable { * {@link android.os.Process#myUserHandle() Process.myUserHandle()} for * more explanation of user handles. * * @return The user handle of the PendingIntent, or null if there is * @return The user handle of the PendingIntent, {@code null} if there is * none associated with it. */ public UserHandle getCreatorUserHandle() { Loading Loading @@ -355,11 +360,11 @@ public class IntentSender implements Parcelable { }; /** * Convenience function for writing either a IntentSender or null pointer to * Convenience function for writing either a IntentSender or {@code null} pointer to * a Parcel. You must use this with {@link #readIntentSenderOrNullFromParcel} * for later reading it. * * @param sender The IntentSender to write, or null. * @param sender The IntentSender to write, or {@code null}. * @param out Where to write the IntentSender. */ public static void writeIntentSenderOrNullToParcel(IntentSender sender, Loading @@ -369,13 +374,13 @@ public class IntentSender implements Parcelable { } /** * Convenience function for reading either a Messenger or null pointer from * Convenience function for reading either a Messenger or {@code null} pointer from * a Parcel. You must have previously written the Messenger with * {@link #writeIntentSenderOrNullToParcel}. * * @param in The Parcel containing the written Messenger. * * @return Returns the Messenger read from the Parcel, or null if null had * @return Returns the Messenger read from the Parcel, or @code null} if @code null} had * been written. */ public static IntentSender readIntentSenderOrNullFromParcel(Parcel in) { Loading core/java/com/android/internal/app/SuspendedAppActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -342,8 +342,8 @@ public class SuspendedAppActivity extends AlertActivity .MODE_BACKGROUND_ACTIVITY_START_ALLOWED) .toBundle(); try { mOnUnsuspend.sendIntent(this, 0, null, null, null, null, activityOptions); mOnUnsuspend.sendIntent(this, 0, null, null, activityOptions, null, null); } catch (IntentSender.SendIntentException e) { Slog.e(TAG, "Error while starting intent " + mOnUnsuspend, e); } Loading services/core/java/com/android/server/pm/InstallPackageHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -801,8 +801,9 @@ final class InstallPackageHelper { try { final BroadcastOptions options = BroadcastOptions.makeBasic(); options.setPendingIntentBackgroundActivityLaunchAllowed(false); target.sendIntent(context, 0, fillIn, null /* onFinished*/, null /* handler */, null /* requiredPermission */, options.toBundle()); target.sendIntent(context, 0, fillIn, null /* requiredPermission */, options.toBundle(), null /* executor */, null /* onFinished*/); } catch (IntentSender.SendIntentException ignored) { } } Loading services/core/java/com/android/server/pm/PackageArchiver.java +6 −4 Original line number Diff line number Diff line Loading @@ -1194,8 +1194,9 @@ public class PackageArchiver { MODE_BACKGROUND_ACTIVITY_START_DENIED); for (IntentSender intentSender : unarchiveIntentSenders) { try { intentSender.sendIntent(mContext, 0, broadcastIntent, /* onFinished= */ null, /* handler= */ null, /* requiredPermission= */ null, options.toBundle()); intentSender.sendIntent(mContext, 0, broadcastIntent, /* requiredPermission */ null, options.toBundle(), /* executor */ null, /* onFinished */ null); } catch (IntentSender.SendIntentException e) { Slog.e(TAG, TextUtils.formatSimple("Failed to send unarchive intent"), e); } finally { Loading Loading @@ -1328,8 +1329,9 @@ public class PackageArchiver { final BroadcastOptions options = BroadcastOptions.makeBasic(); options.setPendingIntentBackgroundActivityStartMode( MODE_BACKGROUND_ACTIVITY_START_DENIED); statusReceiver.sendIntent(mContext, 0, intent, /* onFinished= */ null, /* handler= */ null, /* requiredPermission= */ null, options.toBundle()); statusReceiver.sendIntent(mContext, 0, intent, /* requiredPermission */ null, options.toBundle(), /* executor */ null, /* onFinished */ null); } catch (IntentSender.SendIntentException e) { Slog.e( TAG, Loading Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -11603,6 +11603,7 @@ package android.content { method public static android.content.IntentSender readIntentSenderOrNullFromParcel(android.os.Parcel); method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler) throws android.content.IntentSender.SendIntentException; method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler, String) throws android.content.IntentSender.SendIntentException; method @FlaggedApi("com.android.window.flags.bal_send_intent_with_options") public void sendIntent(@Nullable android.content.Context, int, @Nullable android.content.Intent, @Nullable String, @Nullable android.os.Bundle, @Nullable java.util.concurrent.Executor, @Nullable android.content.IntentSender.OnFinished) throws android.content.IntentSender.SendIntentException; method public static void writeIntentSenderOrNullToParcel(android.content.IntentSender, android.os.Parcel); method public void writeToParcel(android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator<android.content.IntentSender> CREATOR;
core/java/android/content/IntentSender.java +44 −39 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.content; import android.annotation.FlaggedApi; import android.annotation.Nullable; import android.app.ActivityManager; import android.app.ActivityManager.PendingIntentInfo; Loading @@ -32,6 +33,10 @@ import android.os.RemoteException; import android.os.UserHandle; import android.util.AndroidException; import com.android.window.flags.Flags; import java.util.concurrent.Executor; /** * A description of an Intent and target action to perform with it. * The returned object can be Loading Loading @@ -114,15 +119,15 @@ public class IntentSender implements Parcelable { implements Runnable { private final IntentSender mIntentSender; private final OnFinished mWho; private final Handler mHandler; private final Executor mExecutor; private Intent mIntent; private int mResultCode; private String mResultData; private Bundle mResultExtras; FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) { FinishedDispatcher(IntentSender pi, OnFinished who, Executor executor) { mIntentSender = pi; mWho = who; mHandler = handler; mExecutor = executor; } public void performReceive(Intent intent, int resultCode, String data, Bundle extras, boolean serialized, boolean sticky, int sendingUser) { Loading @@ -130,10 +135,10 @@ public class IntentSender implements Parcelable { mResultCode = resultCode; mResultData = data; mResultExtras = extras; if (mHandler == null) { if (mExecutor == null) { run(); } else { mHandler.post(this); mExecutor.execute(this); } } public void run() { Loading @@ -147,16 +152,16 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * completed, or {@code null} for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * * Loading @@ -165,8 +170,8 @@ public class IntentSender implements Parcelable { */ public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler) throws SendIntentException { sendIntent(context, code, intent, onFinished, handler, null, SEND_INTENT_DEFAULT_OPTIONS); sendIntent(context, code, intent, null, SEND_INTENT_DEFAULT_OPTIONS, handler == null ? null : handler::post, onFinished); } /** Loading @@ -174,22 +179,22 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * completed, or {@code null} for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * @param requiredPermission Name of permission that a recipient of the PendingIntent * is required to hold. This is only valid for broadcast intents, and * corresponds to the permission argument in * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}. * If null, no permission is required. * If {@code null}, no permission is required. * * * @throws SendIntentException Throws CanceledIntentException if the IntentSender Loading @@ -198,8 +203,8 @@ public class IntentSender implements Parcelable { public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission) throws SendIntentException { sendIntent(context, code, intent, onFinished, handler, requiredPermission, SEND_INTENT_DEFAULT_OPTIONS); sendIntent(context, code, intent, requiredPermission, SEND_INTENT_DEFAULT_OPTIONS, handler == null ? null : handler::post, onFinished); } /** Loading @@ -207,32 +212,32 @@ public class IntentSender implements Parcelable { * caller to specify information about the Intent to use and be notified * when the send has completed. * * @param context The Context of the caller. This may be null if * <var>intent</var> is also null. * @param context The Context of the caller. This may be {@code null} if * <var>intent</var> is also {@code null}. * @param code Result code to supply back to the IntentSender's target. * @param intent Additional Intent data. See {@link Intent#fillIn * Intent.fillIn()} for information on how this is applied to the * original Intent. Use null to not modify the original Intent. * original Intent. Use {@code null} to not modify the original Intent. * @param onFinished The object to call back on when the send has * completed, or null for no callback. * @param handler Handler identifying the thread on which the callback * should happen. If null, the callback will happen from the thread * completed, or {@code null} for no callback. * @param executor Executor identifying the thread on which the callback * should happen. If {@code null}, the callback will happen from the thread * pool of the process. * @param requiredPermission Name of permission that a recipient of the PendingIntent * is required to hold. This is only valid for broadcast intents, and * corresponds to the permission argument in * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}. * If null, no permission is required. * If {@code null}, no permission is required. * @param options Additional options the caller would like to provide to modify the sending * behavior. May be built from an {@link ActivityOptions} to apply to an activity start. * behavior. Typically built from using {@link ActivityOptions} to apply to an activity start. * * @throws SendIntentException Throws CanceledIntentException if the IntentSender * is no longer allowing more intents to be sent through it. * @hide */ public void sendIntent(Context context, int code, Intent intent, OnFinished onFinished, Handler handler, String requiredPermission, @Nullable Bundle options) @FlaggedApi(Flags.FLAG_BAL_SEND_INTENT_WITH_OPTIONS) public void sendIntent(@Nullable Context context, int code, @Nullable Intent intent, @Nullable String requiredPermission, @Nullable Bundle options, @Nullable Executor executor, @Nullable OnFinished onFinished) throws SendIntentException { try { String resolvedType = intent != null ? Loading @@ -243,7 +248,7 @@ public class IntentSender implements Parcelable { int res = ActivityManager.getService().sendIntentSender(app, mTarget, mWhitelistToken, code, intent, resolvedType, onFinished != null ? new FinishedDispatcher(this, onFinished, handler) ? new FinishedDispatcher(this, onFinished, executor) : null, requiredPermission, options); if (res < 0) { Loading @@ -268,7 +273,7 @@ public class IntentSender implements Parcelable { * sending the Intent. The returned string is supplied by the system, so * that an application can not spoof its package. * * @return The package name of the PendingIntent, or null if there is * @return The package name of the PendingIntent, or {@code null} if there is * none associated with it. */ public String getCreatorPackage() { Loading Loading @@ -296,7 +301,7 @@ public class IntentSender implements Parcelable { * {@link android.os.Process#myUserHandle() Process.myUserHandle()} for * more explanation of user handles. * * @return The user handle of the PendingIntent, or null if there is * @return The user handle of the PendingIntent, {@code null} if there is * none associated with it. */ public UserHandle getCreatorUserHandle() { Loading Loading @@ -355,11 +360,11 @@ public class IntentSender implements Parcelable { }; /** * Convenience function for writing either a IntentSender or null pointer to * Convenience function for writing either a IntentSender or {@code null} pointer to * a Parcel. You must use this with {@link #readIntentSenderOrNullFromParcel} * for later reading it. * * @param sender The IntentSender to write, or null. * @param sender The IntentSender to write, or {@code null}. * @param out Where to write the IntentSender. */ public static void writeIntentSenderOrNullToParcel(IntentSender sender, Loading @@ -369,13 +374,13 @@ public class IntentSender implements Parcelable { } /** * Convenience function for reading either a Messenger or null pointer from * Convenience function for reading either a Messenger or {@code null} pointer from * a Parcel. You must have previously written the Messenger with * {@link #writeIntentSenderOrNullToParcel}. * * @param in The Parcel containing the written Messenger. * * @return Returns the Messenger read from the Parcel, or null if null had * @return Returns the Messenger read from the Parcel, or @code null} if @code null} had * been written. */ public static IntentSender readIntentSenderOrNullFromParcel(Parcel in) { Loading
core/java/com/android/internal/app/SuspendedAppActivity.java +2 −2 Original line number Diff line number Diff line Loading @@ -342,8 +342,8 @@ public class SuspendedAppActivity extends AlertActivity .MODE_BACKGROUND_ACTIVITY_START_ALLOWED) .toBundle(); try { mOnUnsuspend.sendIntent(this, 0, null, null, null, null, activityOptions); mOnUnsuspend.sendIntent(this, 0, null, null, activityOptions, null, null); } catch (IntentSender.SendIntentException e) { Slog.e(TAG, "Error while starting intent " + mOnUnsuspend, e); } Loading
services/core/java/com/android/server/pm/InstallPackageHelper.java +3 −2 Original line number Diff line number Diff line Loading @@ -801,8 +801,9 @@ final class InstallPackageHelper { try { final BroadcastOptions options = BroadcastOptions.makeBasic(); options.setPendingIntentBackgroundActivityLaunchAllowed(false); target.sendIntent(context, 0, fillIn, null /* onFinished*/, null /* handler */, null /* requiredPermission */, options.toBundle()); target.sendIntent(context, 0, fillIn, null /* requiredPermission */, options.toBundle(), null /* executor */, null /* onFinished*/); } catch (IntentSender.SendIntentException ignored) { } } Loading
services/core/java/com/android/server/pm/PackageArchiver.java +6 −4 Original line number Diff line number Diff line Loading @@ -1194,8 +1194,9 @@ public class PackageArchiver { MODE_BACKGROUND_ACTIVITY_START_DENIED); for (IntentSender intentSender : unarchiveIntentSenders) { try { intentSender.sendIntent(mContext, 0, broadcastIntent, /* onFinished= */ null, /* handler= */ null, /* requiredPermission= */ null, options.toBundle()); intentSender.sendIntent(mContext, 0, broadcastIntent, /* requiredPermission */ null, options.toBundle(), /* executor */ null, /* onFinished */ null); } catch (IntentSender.SendIntentException e) { Slog.e(TAG, TextUtils.formatSimple("Failed to send unarchive intent"), e); } finally { Loading Loading @@ -1328,8 +1329,9 @@ public class PackageArchiver { final BroadcastOptions options = BroadcastOptions.makeBasic(); options.setPendingIntentBackgroundActivityStartMode( MODE_BACKGROUND_ACTIVITY_START_DENIED); statusReceiver.sendIntent(mContext, 0, intent, /* onFinished= */ null, /* handler= */ null, /* requiredPermission= */ null, options.toBundle()); statusReceiver.sendIntent(mContext, 0, intent, /* requiredPermission */ null, options.toBundle(), /* executor */ null, /* onFinished */ null); } catch (IntentSender.SendIntentException e) { Slog.e( TAG, Loading