Isn't onPause() called when one Activity calls another too? I want to know when an entire Activity has lost focus, if I use onPause () in an Activity which calls another, when the other Activity has started the initiating Activity's onPause() method is called.
On Jan 17, 1:03 pm, Mark Murphy <[email protected]> wrote: > mscwd01 wrote: > > I may just be overlooking something blatently obvious here but this > > seems to be alluding me... > > > I have an app which routinely contacts my server requesting updates > > (small amounts of data). Whilst the user is using my app I wish this > > updating to continue, however when the app "closes" (i.e. the "home" > > button is pressed and the app loses focus), I wish to stop the app > > requesting updates from the server... simply because its unnecessary. > > I realise an app is not actually "closed" when the home button is > > pressed, however is there a method called which signifies a user has > > "left" the application and started another/returned to the home > > screen? > > onPause() > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

