Posts Tagged terminated

Android – onRestoreInstanceState

Are your users complaining that your app is crashing when it’s restarted after being killed by the operating system or a task manager? Are you still trying to figure out why? You might want to try overriding onRestoreInstanceState, not calling the super, and seeing if the problem goes away.

    @Override
    protected void onRestoreInstanceState (Bundle savedInstanceState) {
    	//super.onRestoreInstanceState(savedInstanceState);
    }

This is a quick way of dealing with the problem and keeping your users happy, while you’re busy trying to figure out the root cause of the problem. You need to do a lot of testing to ensure it doesn’t cause any new problems, especially when switching activities and using the home and back keys.  Good luck!

, , , , , , , ,

Leave a comment

%d bloggers like this: