android - Android 平台如何处理应用程序崩溃?

标签 android

假设安卓手机上有很多应用程序。由于某些原因,一些应用程序崩溃了。 Android 将关闭这些崩溃的应用程序。我正在开发一个将列出所有崩溃的应用程序。一种解决方案是针对任何崩溃运行 logcat 命令和 grep 日志。

但我想知道当其他应用程序崩溃时是否会触发任何广播或 Intent ,以便我可以捕获该特定应用程序的日志?

提前致谢

最佳答案

One solution is to run logcat command and grep logs for any crashes

仅适用于 Android 4.1 及以下版本,或已获得 root 权限的设备。否则您无权从其他应用程序登录。

But I want to know if there is any broadcast or intent which is fired when some other application crashes so that I can capture logs for that particular application ?

据我所知,当然也没有记录在案。

关于android - Android 平台如何处理应用程序崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37025764/

相关文章:

java - 无法通过 UI 从 AsyncTask 发回数据

java - Robolectric 未找到包含 org.robolectric.ShadowsAdapter 的阴影模块

android - 有没有办法获得语言方向(RTL/LTR)?

android - setSpeakerphoneOn()在2.1上不起作用,在2.3上不起作用

android - 使用 Maven 构建 Android 应用程序并运行 Robotium 测试

android - Database.Logger.Level 枚举值在版本 11.0.0 中不可访问

android - 如何从实时数据库 firebase 的单个 ListView 中同时获取所有 child 的详细信息

android - 从 Android Studio 移回 Eclipse

Android:Google Places Autocomplete - 我如何使用它来填充 RecyclerView 而不是下拉菜单?

java - 获取 Android 库中源代码的校验和