android 监听其它app的错误或者崩溃的方法 (ProcessErrorStateInfo)
2015-08-14 16:09
567 查看
具体请参见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;
}
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;
}
相关文章推荐
- android apk嵌套 从一个apk启动另外一个apk
- Android基于mAppWidget实现手绘地图(十二)–显示当前用户位置
- ios 后台执行代码
- Android训练课程(Android Training) - 高效的显示图片
- IOS TextField设置大全
- Android 不同应用通过SharedPreference实现共享数据
- Objective-C:内存管理的小结
- Android FragmentManage FragmentTransaction介绍(二)
- Android 一个app启动另一个app
- Android—ListView Item 展开动画效果
- Android将程序崩溃信息保存本地文件
- android-smart-image-view源码分析
- Android 学习之补间(Tween)动画
- iOS短信验证SMSSDK的使用
- (大数据工程师学习路径)第三步 Git Community Book----高级技能
- 监听android键盘弹出隐藏
- iOS 多线程总结
- Android主页导航:fragment+viewpager
- Android基于mAppWidget实现手绘地图(十一)–移动地图到某个坐标
- Android Sqlite分页