Understanding the Life Cycle of an Activity