Share via


UserManager.DisallowSystemErrorDialogs Field

Definition

Specifies that system error dialogs for crashed or unresponsive apps should not be shown.

[Android.Runtime.Register("DISALLOW_SYSTEM_ERROR_DIALOGS", ApiSince=28)]
public const string DisallowSystemErrorDialogs;
[<Android.Runtime.Register("DISALLOW_SYSTEM_ERROR_DIALOGS", ApiSince=28)>]
val mutable DisallowSystemErrorDialogs : string

Field Value

Attributes

Remarks

Specifies that system error dialogs for crashed or unresponsive apps should not be shown. In this case, the system will force-stop the app as if the user chooses the "close app" option on the UI. A feedback report isn't collected as there is no way for the user to provide explicit consent. The default value is false.

When this user restriction is set by device owners, it's applied to all users. When set by the profile owner of the primary user or a secondary user, the restriction affects only the calling user. This user restriction has no effect on managed profiles.

Holders of the permission android.Manifest.permission#MANAGE_DEVICE_POLICY_SYSTEM_DIALOGS can set this restriction using the DevicePolicyManager APIs mentioned below.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_SYSTEM_ERROR_DIALOGS.

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.

Applies to