具體請參見android源碼:ProcessErrorsTest.java
private String checkForProcessErrors() throws Exception {
List<ProcessErrorStateInfo> errList;errList = mActivityManager.getProcessesInErrorState();
// note: this contains information about each process that is currently in an error
// condition. if the list is empty (null) then "we're good".
// if the list is non-empty, then it's useful to report the contents of the list
final String reportMsg = reportListContents(errList);
return reportMsg;
}