gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 17:19:55 25 4
gpt4 key购买 nike

假设安卓手机上有很多应用程序。由于某些原因,一些应用程序崩溃了。 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com