Well, I thought so too!
But onResume() is called both when the menu disappears and when the
user open the program again by clicking on the icon.
Same goes for onRestart().

Cheers

On Jan 19, 10:58 pm, "Faber Fedor" <[email protected]> wrote:
> Isn't that what onResume() and onPause are for?
>
>
>
> On Mon, Jan 19, 2009 at 4:24 PM, balachmar <[email protected]> wrote:
>
> > Hi,
> > I want a countdowntimer to halt on a menu and also when the user goes
> > from that menu to another activity.
> > When the user comes back from that activity or when the menu is
> > closed, the timer should still halt.
> > However when the user went to the home screen and clicks on the icon
> > again, I want the timer to restart.
> > So my question is, is there a way to detect if the user has just
> > opened your application, or if the user comes back from another
> > activity or menu?
>
> > Thanks in advance,
>
> > Willem Ligtenberg
>
> --
>
> Faber Fedor
> Cloud Computing New Jerseyhttp://cloudcomputingnj.com
--~--~---------~--~----~------------~-------~--~----~
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