title: Android activity and fragment lifecycle
body: <p>This <a href="http://java.dzone.com/articles/visualization-android-activity" rel="nofollow">link</a> provide a visualization of the lifecycle for activity and fragment.
  But it didn't really mention the full lifecycle when fragment is being triggered from an activity.
  Can someone please explain what is the sequence of method will be triggered (both fragment and activity) when users change the device orientation?
  Will this be the sequence: </p>
  
  <ol>
  <li>Fragment.onPause,  </li>
  <li>Fragment.onSaveInstance,   </li>
  <li>Fragment.onStop,</li>
  <li>Fragment.onDestroy,  </li>
  <li>Activity.onPause,   </li>
  <li>Activity.onSaveInstance,  </li>
  <li>Activity.onStop,  </li>
  <li>Activity.onDestory,</li>
  <li>Activity create again ... and running</li>
  <li>Fragment create again ... and running</li>
  </ol>