Partager via


ActivityManager.ProcessesInErrorState Property

Definition

Returns a list of any processes that are currently in an error condition.

public virtual System.Collections.Generic.IList<Android.App.ActivityManager.ProcessErrorStateInfo>? ProcessesInErrorState { [Android.Runtime.Register("getProcessesInErrorState", "()Ljava/util/List;", "GetGetProcessesInErrorStateHandler")] get; }
[<get: Android.Runtime.Register("getProcessesInErrorState", "()Ljava/util/List;", "GetGetProcessesInErrorStateHandler")>]
member this.ProcessesInErrorState : System.Collections.Generic.IList<Android.App.ActivityManager.ProcessErrorStateInfo>

Property Value

Returns a list of ProcessErrorStateInfo records, or null if there are no current error conditions (it will not return an empty list). This list ordering is not specified.

Attributes

Remarks

Returns a list of any processes that are currently in an error condition. The result will be null if all processes are running properly at this time.

As of android.os.Build.VERSION_CODES#TIRAMISU Android TIRAMISU, for regular apps this method will only return ProcessErrorStateInfo records for the processes running as the caller's uid, unless the caller has the permission android.Manifest.permission#DUMP.

Java documentation for android.app.ActivityManager.getProcessesInErrorState().

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