gpt4 book ai didi

Android:BroadcastReceiver 以重启被杀死/崩溃的应用程序

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:54:48 24 4
gpt4 key购买 nike

我有一个应用程序,我希望能够在发生错误或崩溃/应用程序关闭时重新启动它。我熟悉如何注册 BroadcastReceivers、使用警报等。

是否有任何我可以拦截应用程序关闭时发出的信号?或者操作系统在任何应用程序关闭时发出通知?

最佳答案

Is there any signal I could intercept that the app sends out when it shuts down? Or that the > OS sends out when any app shuts down?

不,不,AFAIK。

关于Android:BroadcastReceiver 以重启被杀死/崩溃的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3712245/

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