onPause/onStop can happen for any number of reasons, not just pressing the Home button...
On Fri, Nov 27, 2009 at 2:44 PM, dapaintballer331 <dapaintballer...@gmail.com> wrote: > I figured out how to get it to work! > > For the record: > I'm unsure of why onPause / onStop won't start an activity in the > emulator, if the home button is pressed (SDK 1.5), however a solution > is to have onPause create an alarm to do the work for you :) > > -Brandon > > On Nov 27, 3:42 pm, dapaintballer331 <dapaintballer...@gmail.com> > wrote: >> The logcat says its launching the activity, however it only is >> displayed if the back key triggered this. >> >> On Nov 27, 3:29 pm, Mark Murphy <mmur...@commonsware.com> wrote: >> >> >> >> > dapaintballer331 wrote: >> > > So do activities receive anything when the button is pressed? >> >> > > I thought activities are paused when they become hidden... >> >> > Activities will be called with onPause() and onStop() when the HOME key >> > is pressed. They will be called with those two methods in many other >> > scenarios, though (incoming phone call, user launches an application >> > from a notification, you start up another activity from your own code, >> > etc.). >> >> > -- >> > Mark Murphy (a Commons >> > Guy)http://commonsware.com|http://twitter.com/commonsguy >> >> > Android 1.6 Programming Books:http://commonsware.com/books > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en