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 <[email protected]>
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 <[email protected]> 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 [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

Reply via email to