I am trying to restart the app when the crash occurs in android using Thread.UncaughtExceptionHandler
. Can i restart the app with current activity stack as a new process?? If yes how can i do it?
One method is to override the onPause method in the activity to kill the app. Like this:
public class MyActivity extends Activity {
@Override
public void onPause() {
finish();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With