Understanding Activity and Fragment lifecycle.