Using Log.d() in these two methods, same code, on pause runs first on Android 2.2 but second on Android 4 after onSaveInstanceState.
Is that right?
Why the change?
Using Log.d() in these two methods, same code, on pause runs first on Android 2.2 but second on Android 4 after onSaveInstanceState.
Is that right?
Why the change?
The problem is I used onPause to set variables which were read by onSaveInstanceState, which like I said never was a problem until Android 3 or 4.
The correct solution is to write your onSaveInstanceState so it is not dependent on onPause having run
read out this-http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29 this may helps