Android myth 2/2: config change and restoring state
Martin Bonnin
1

You are not understanding the problem then, your “simple” fix is what you see new developers doing to solve this problems, but this can happen for language change, resizing of your activity, keyboard opening, etc. If you don’t fix the root cause of the problem, then you are just going around the problem. Your activity, fragment, custom views, anything you have in your UI, should be able to save whatever it needs so that if it gets recreated has everything to get the user to the same state he was before the configuration changed.