You don't have to intercept the home button.... Just call finish() in onPause(), onStop(), or onDestroy() depending on what fits your behavior the best.
Thanks, Justin ---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Wed, Oct 28, 2009 at 7:22 PM, jbrohan <[email protected]> wrote: > > Thanks RicharDC > > This explains a lot. Why the MyTracks is always there using up my > battery, and more to the point why my application that uses a Camera > fails sometimes. I think I'm sure I want to go right back to OFF when > the user presses Home or Back. Do regular users understand this or am > I lacking some gene required to operate a cell-phone. > > The example of moving from email to Gallery etc is interesting. My > thrust is to keep the app predictable. Starting from the same place is > predictable. Snap a picture, send it in, stop. Snap a picture, fiddle > with the settings, send in the picture, do it again, stop. It seems to > me I have to end in a stop except where the sequence is interrupted by > a phone call, and that works fine already. > > I think what I'd like is to intercept the Home button and finish() my > whole task. I'll look into this in the morning. > Thanks again > John > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

