Its not recommended to start an Activity on db change. If u want to implement this, use service which starts on boot-up and registers for contentObserver., When Onchange() of your content observer is called, start the service which launches the Activity.
On Fri, May 22, 2009 at 10:07 AM, Kasmoori Bindu <[email protected]>wrote: > Hi, > > Does anybody has info regarding below mailchain. Please help me i want it > urgently. > > Best Regards, > Bindu > > > ---------- Forwarded message ---------- > From: Kasmoori Bindu <[email protected]> > Date: Wed, May 20, 2009 at 6:15 PM > Subject: Listener Service for data sources > To: [email protected], > [email protected] > > > Hi All, > > Iam a beginner in android, just want to develop a service which listens to > the database and it should invoke an activity as soon as there is a change. > I tried to implement Contacts listener by registering ContentObserver but > couldnot see the expected result. Kept log in onChange() method, observed > that it is not getting called, any clue that where it might went wrong. > Please help me. > > Best Regards, > Bindu > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

