Android Lifecycle of Activity
:: LANDSCAPE mode
[Incoming Call Event]
-> public void onSaveInstanceState(Bundle savedInstanceState) {}
[Restore]
-> public void onConfigurationChanged(Configuration newConfig) {}
:: Portrait mode
[Incoming Call Event]
-> public void onSaveInstanceState(Bundle savedInstanceState) {}
[Restore]
-> public void onRestoreInstanceState(Bundle savedInstanceState) {}
for Example,
- Lifecycle of VideoView and SurfaceView (Landscape, Portrait)
:: VideoView(with MediaController; LANDSCAPE mode)
[Incoming Call Event]
-> public void onSaveInstanceState(Bundle savedInstanceState) {}
[Restore]
-> public void onConfigurationChanged(Configuration newConfig) {}
:: SurfaceView(with MediaPlayer; Portrait mode)
[Incoming Call Event]
-> public void onSaveInstanceState(Bundle savedInstanceState) {}
[Restore]
-> public void onRestoreInstanceState(Bundle savedInstanceState) {}
-----
Cheers,
June
금요일, 7월 23, 2010
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기