Activity.SetAllowCrossUidActivitySwitchFromBelow(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies whether the activities below this one in the task can also start other activities or finish the task.
[Android.Runtime.Register("setAllowCrossUidActivitySwitchFromBelow", "(Z)V", "GetSetAllowCrossUidActivitySwitchFromBelow_ZHandler", ApiSince=35)]
public virtual void SetAllowCrossUidActivitySwitchFromBelow (bool allowed);
[<Android.Runtime.Register("setAllowCrossUidActivitySwitchFromBelow", "(Z)V", "GetSetAllowCrossUidActivitySwitchFromBelow_ZHandler", ApiSince=35)>]
abstract member SetAllowCrossUidActivitySwitchFromBelow : bool -> unit
override this.SetAllowCrossUidActivitySwitchFromBelow : bool -> unit
Parameters
- allowed
- Boolean
true
to disable the UID restrictions; false
to revert back to
the default behaviour
- Attributes
Remarks
Specifies whether the activities below this one in the task can also start other activities or finish the task.
Starting from Target SDK Level android.os.Build.VERSION_CODES#VANILLA_ICE_CREAM
, apps may be blocked from starting new activities or finishing their task unless the top activity of such task belong to the same UID for security reasons.
Setting this flag to true
will allow the launching app to ignore the restriction if this activity is on top. Apps matching the UID of this activity are always exempt.
Java documentation for android.app.Activity.setAllowCrossUidActivitySwitchFromBelow(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.