0

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?

MikeHelland
  • 1,151
  • 1
  • 7
  • 17

2 Answers2

1

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

MikeHelland
  • 1,151
  • 1
  • 7
  • 17