I need to act differently in onStart() method depending on how onCreate() was called in result of orientation change or not. Is that
onStart()
onCreate()
orientation change
Following Nahtan's idea I wrote this:
in onCreate():
if ( (oldConfigInt & ActivityInfo.CONFIG_ORIENTATION)==ActivityInfo.CONFIG_ORIENTATION ) { // ... was rotated } else { // ... was not rotated }
in onDestroy():
super.onDestroy(); oldConfigInt = getChangingConfigurations();