Android:BroadcastReceiver 重新启动被杀死/崩溃的应用程序 [英] Android: BroadcastReceiver to restart killed/crashed app
本文介绍了Android:BroadcastReceiver 重新启动被杀死/崩溃的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个应用程序,我希望能够在发生错误或崩溃/应用程序关闭时重新启动它.我熟悉如何注册BroadcastReceivers
,使用闹钟等
I have an application and I would like to be able to restart it on the event of an error or a crash/app shutdown. I am familiar with how to register BroadcastReceivers
, use alarms, etc.
当应用程序关闭时,我是否可以截获应用程序发出的任何信号?或者当任何应用关闭时操作系统会发出?
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?
推荐答案
当应用程序关闭时,我是否可以截获应用程序发出的任何信号?或者当任何应用程序关闭时 > 操作系统会发出?
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 重新启动被杀死/崩溃的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文