When my main activity starts after the splash screen it parses 4 big XML files. This takes a few seconds and I'm able to hide this in the time the splash screen shows at startup.
But when the screen orientation changes or when I go back to the main activity after a sub-activity it parses again and thus fore my app 'hangs' for a few seconds and it doesn't respond or anything in that time.
I understand this is normal behaviour in Android, but isn't there a way to avoid this?
I read something about savedinstancestate, but I can't seem to understand the docs..
See Question&Answers more detail:os