Issue with Activity killed by System if No Longer Visible in Android

Viewed 2009

I have There Activities(A,B,C) within my Application.When i start the Application Activity A:

  A:onCreate()
  A:onStart()
  A:onResume()

Using intent i am calling Second Activity(A -> B):

  A:onPause()
  B:onCreate()
  B:onStart()
  B:onResume()
  A:onStop()

Then I click the "Home" button So the App goes to background:Now

  B:onPause()
  B:onStop()

After 1 or 2 hour later Again i go to home page within my device and Click the App icon it runs like:

 B:onDestroy()
 A:onRestart()
 A:onStart()
 A:onResume()

But i need to go which one Activity i quit like this,

B:onRestart()
B:onStart()
B:onResume()

I have read some articles it says like that activity killed by the system because of no longer visible.Is there any possible to fix my issue...

Thanks in advance...

2 Answers
Related