본문 바로가기
프로그래밍 놀이터/안드로이드, Java

[android] Activity Configuration Change Simulation.

by 돼지왕 왕돼지 2015. 12. 14.
반응형

 [android] Activity Configuration Change Simulation.


Android, api level 11, configuration change simulation, lifecycle, new instance, OnDestroy, recreate, [android] Activity Configuration Change Simulation., 방향 전환, 시뮬레이션, 안드로이드


https://developer.android.com/reference/android/app/Activity.html#recreate%28%29


Activity 의 recreate() 함수를 호출하면 된다.


public void recreate ()

Added in API level 11

Cause this Activity to be recreated with a new instance. This results in essentially the same flow as when the Activity is created due to a configuration change -- the current instance will go through its lifecycle to onDestroy() and a new instance then created after it.






반응형

댓글