android 监听其它app的错误或者崩溃的方法 (ProcessErrorStateInfo)
16lz
2021-01-23
具体请参见android源码:ProcessErrorsTest.java
private String checkForProcessErrors() throws Exception {
ListerrList = 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;
}
更多相关文章
- android 源码的一些修改定制方案
- 源码网站推荐
- Android抓屏源码
- android查看第三方libs的jar源码
- View的invalidate()方法的源码分析
- Android高版本P/Q/R源码编译指南
- android lru缓存 辅助类LruCache源码解析