For my settings editor activity I use the following manifest flags: allowTaskReparenting = true finishOnTaskLaunch = true and I save the settings at onPause()
These flags will finish the activity once it will brought to background for any reason (HOME, BACK, another event...) On Sep 13, 5:53 pm, elephantbug <[EMAIL PROTECTED]> wrote: > but our app wants to prevent user from continuing use the app. Maybe > freeze the app can also do the trick, which forces user to use home > dutton. There should be a way to auto exit , just do not know how. > Anyone? > > On Sep 13, 12:58 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > > > There is no need to do this. The user can just press the Home key to > > "exit" the app. > > > On Fri, Sep 12, 2008 at 6:27 PM, elephantbug <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Is there a way to exit the application completely at any place? > > > > call finish() will only exit the current activity. > > > > I tried to getApplication() from activity and call its onTerminate() > > > directly... but it seems not working at all... > > > > Anyone can give any clue how to do it? > > > > Thanks > > > -- > > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

