title: Keeping activity alive
body: <p>I have a series of activities in my application which starts with Activity "A" and followed by "B", "C" , "D" and "E". Activity "A","B","C" and "D" are transparent activities (transparent theme) while "E" is opaque.</p>
  
  <p>The requirement is the Activity "A" should not be finished. I read through a blog <a href="http://www.skill-guru.com/blog/2011/01/13/android-activity-life-cycle/" rel="nofollow">http://www.skill-guru.com/blog/2011/01/13/android-activity-life-cycle/</a> which states that </p>
  
  <ol>
  <li>If an activity has lost focus but is still visible (that is, a new
  non-full-sized or transparent activity has focus on top of your
  activity), it is paused.</li>
  <li>If an activity is completely obscured by another activity, it is
  stopped.</li>
  </ol>
  
  <p>The onStop() of Activity "A" is not called till the user browses to Activity "D" however it is called when Activity "E" is invoked.</p>
  
  <p>Is there anyway that we can keep the Activity "A" running in the Activity stack? Is it a good solution to keep a static reference of the Activity in a Application object so that framework does not kill it ? What precautions can i take so that "A" is not killed? Is there a way that i can get a notification if this gets killed by framework so that i can recreate it ?</p>