Take the 2-minute tour ×  In my Application, activity A is
launcher activity, from A it called B and from B it called C, I
have such more than 5 activities. In C when I press home button,
and again open my app it open C, that is fine in my case. But
after pressing home button in C, when it idle for some time and
application is killed, after that when I open my app it opens C.
But I want to open main launcher activity that time. How can I
do this?  A > B > C > HOME button > idle for some time >
application killed > open app > C.  In this case I want to open
main activity A instead of C.  share|improve this question and
how do you assume that the app is getting killed? It does not
happen just because your app is idle for sometime. If it has
started from C means it was never killed. An application is
automatically killed by the device only when the device is under
load and dearth of memory –  Vicky Kapadia Sep 11 '12 at 6:09 In
ddms logcat, it is showing process <mypackagename> has died. – 
Mihir Shah Sep 11 '12