Hi,

I have three activities A, B and C.  A is the main activity launched
from MAIN LAUNCHER.

All the activities have 'android:finishOnTaskLaunch="true"' in the
manifest file.

Now A lunches B, B launches C. My Application maintains some static
info at this stage, This is global for application and it is my
requirement. At this time user presses HOME key.  My app will be sent
to background, home screen will be displayed.

Now if the user LONG presses the HOME and launches my App, It will
returns to the activity 'C', the static info remains same.

If the user launches it from main menu, it will resume the main
activity "A" others would have been finished.  At this stage I need to
reset my static info. If the user presses BACK key I need not clear
this state. This time "onResume" of A is getting called, but not
"onCreate". So, I am not able differentiate "onResume" of BACK Press
from B and that of launch from main menu.

Please help me to clear this state out during task re-launch in the
above case by identifying Main Menu launch from HOME.

Thanks,
With Regards,
Muniraju




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to