forum

Home / DeveloperSection / Forums / How to force recreation of Activity/Fragment on restore

How to force recreation of Activity/Fragment on restore

Anurag Sharma231323-Jan-2015

I am having a number of issues around saving app state to a Bundle via onSaveInstanceState().

For now, I need to address the issue of my app crashing when it restored after being closed by Android.

When an Activity/Fragment (in background) is being force closed by Android to regain resources, is there a way I can say "don't try and restore state when resume, just create everything anew"?

Thanks


Can you answer this question?


Answer

1 Answers

Liked By