When you are in the activity C with the activity stack A > B > C. User presses HOME Key, and starts the app and then starts it again from main menu.
At time it should look like fresh or restart of the application, So, I need to identify that and clear some static information that was maintained by the application Thanks, With Regards Muniraju On Sep 3, 8:59 pm, Dianne Hackborn <[email protected]> wrote: > onResume() tells you that the activity is now in the foreground, so you can > rely on it to tell you where the user is currently at. > > > > > > On Thu, Sep 3, 2009 at 4:47 AM, Muniraju <[email protected]> wrote: > > > 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 > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

