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

