Android: BroadcastReceiver to restart killed/crashed app

ε祈祈猫儿з 提交于 2019-12-20 01:03:58

问题


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?


回答1:


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?

No and no, AFAIK.



来源:https://stackoverflow.com/questions/3712245/android-broadcastreceiver-to-restart-killed-crashed-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!