Prevent Activity Stack from being Restored?

The only solution I was able to find was to check a global static variable in every instance of onCreate() and finish if that variable had been reset to null, indicating the task had been restarted. I close all activities down to my root activity and start over.

Soon I hope to have my app at a point where it can save needed values in onPause(), but ’til then this is the only reliable way I know to work with lost initialization…

Leave a Comment