That will log your major lifecycle callbacks of your Activity, and then you can examine them in your logcat. You will probably have to save some information about your image in your onSaveInstanceState callback, and then restore it in your onCreate callback, assuming that your activity is indeed being destroyed and recreated, but that does seem to be the case.
public class MyActivity exetends Activity {
private final String TAG = "MyActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.d(TAG, "onCreate")
}
@Override
protected void onStart() {
Log.d(TAG, "onStart")
}
@Override
protected void onRestart() {
Log.d(TAG, "onRestart")
}
@Override
protected void onResume() {
Log.d(TAG, "onResume")
}
@Override
protected void onPause() {
Log.d(TAG, "onPause")
}
@Override
protected void onStop() {
Log.d(TAG, "onStop")
}
@Override
protected void onDestroy() {
Log.d(TAG, "onDestroy")
}
@Override
protected void onSaveInstanceState(Bundle outBundle) {
Log.d(TAG, "onSaveInstanceState);
}
}