>From my limited usage of ContentObserver, it is used to determine when
a single record of the database changes. If you want to observe many
records, I believe that you need to use a DataSetObserver. Look at the
source code for how SimpleCursorAdapter uses them.

I'd be interested in clarification, if I am incorrect about this.


On Sep 13, 2:39 am, Sohan badaya <[email protected]> wrote:
> Hi All,
>
> I want to write a code that will notify me whenever my database
> changes.
> For example I write a code that extends ContentObserver class and
> overrieds
> onChange() method.
> and in registration time i am giving url
> "Contacts.People.CONTENT_URI".
> so i want when some modify contacts onChange() method should be
> called.
> But its not working. Please help me for the same.
>
> Thanks,
> Sohan Badaya

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