ActivityManager.GetHistoricalProcessExitReasons(String, Int32, Int32) 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.
Return a list of ApplicationExitInfo records containing the reasons for the most
recent app deaths.
[Android.Runtime.Register("getHistoricalProcessExitReasons", "(Ljava/lang/String;II)Ljava/util/List;", "GetGetHistoricalProcessExitReasons_Ljava_lang_String_IIHandler", ApiSince=30)]
public virtual System.Collections.Generic.IList<Android.App.ApplicationExitInfo> GetHistoricalProcessExitReasons (string? packageName, int pid, int maxNum);
[<Android.Runtime.Register("getHistoricalProcessExitReasons", "(Ljava/lang/String;II)Ljava/util/List;", "GetGetHistoricalProcessExitReasons_Ljava_lang_String_IIHandler", ApiSince=30)>]
abstract member GetHistoricalProcessExitReasons : string * int * int -> System.Collections.Generic.IList<Android.App.ApplicationExitInfo>
override this.GetHistoricalProcessExitReasons : string * int * int -> System.Collections.Generic.IList<Android.App.ApplicationExitInfo>
Parameters
- packageName
- String
Optional, a null value means match all packages belonging to the
caller's UID. If this package belongs to another UID, you must hold
android.Manifest.permission#DUMP in order to retrieve it.
- pid
- Int32
A process ID that used to belong to this package but died later; a value of 0 means to ignore this parameter and return all matching records.
- maxNum
- Int32
The maximum number of results to be returned; a value of 0 means to ignore this parameter and return all matching records
Returns
a list of ApplicationExitInfo records matching the criteria, sorted in
the order from most recent to least recent.
- Attributes
Remarks
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.