But how do i post a message to the service from my activity..

On Fri, May 15, 2009 at 10:28 AM, Mark Murphy <mmur...@commonsware.com>wrote:

>
> > I have written a service, which observes couple of databases. Now that
> > I don't want to handle this when a particular activity is running. Its
> > my own activity. How do i do that???
>
> Have your activity tell your service "I'm alive!" in onResume(), and have
> your activity tell your service "I'm outta here!" in onPause(). Or use
> onStart()/onStop() instead of onPause()/onResume().
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Available!
>
>
>
> >
>


-- 
Regards,
Manjunatha

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to