Android: BroadcastReceiver to restart killed/crash

2019-02-24 08:39发布

问题:

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.