Issue
I know when orientation changes Android destroys and recreates current activity unless we handled Orientation changes. When orientation changes following life cycle methods get called
protected void onSaveInstanceState(Bundle outState)
protected void onStop()
protected void onDestroy()
public void onCreate(Bundle savedInstanceState)
protected void onStart()
protected void onRestoreInstanceState(Bundle savedInstanceState)
protected void onResume()
My Question is why these methods are getting called twice when I change from landscape to portrait and only once when I switch from Portrait to landscape.
Solution
It might be some kind of bug in emulators, It is not happening on real devices.
Answered By - Ganesh K
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.