Prevent android from re-creating activity stack after crash

I have an application that encounters an exception in activity at several levels down the stack. I also use ACRA for crash reporting in status notification mode + dialog mode. What I see is because when my process is killed due to an exception, Android recreates the activity stack to the offending parent. I would like to redefine this behavior. If my application crashes, I would like it to remain crashed.

This is stated in the Android developers:

http://groups.google.com/group/android-developers/browse_thread/thread/b274cfa64b17f535/92d8da160be85748?lnk=gst&q=force+close+restarts#92d8da160be85748

I also read the discussion in this thread: Prevent activity stack recovery?

but I'm looking to see if there is an update on the platform for this or newer technology. Currently, the restart behavior is causing ACRA problems because the report failure notification is cleared as soon as the activity stack is recreated and the user does not have time to send the report.

+7
source share
1 answer

I also use ACRA, and I found that adding forceCloseDialogAfterToast = true to the @ReportCrashes annotation will suppress the restart. The cost, however, is that you get the Android Force Close dialog box. I cannot figure out how to get rid of this and prevent the application from restarting ...

0
source

All Articles