Android - screen orientation reloads activity

后端 未结 5 385
野性不改
野性不改 2020-12-30 15:13

im going to re-ask this question because there is SO much bad information out there its really depressing. the short story is that i dont want anything to change or happen w

5条回答
  •  粉色の甜心
    2020-12-30 15:23

    Save the image details in your onPause() or onStop() and use it in the onCreate(Bundle savedInstanceState) to restore the image.

    More info on the actual process is detailed here http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle as it is different in Honeycomb than previous Android versions.

提交回复
热议问题