i want to use ContentObserver to observe one row in table RAW_CONTACTS
of db CONTACTS.

for example: there is one row in RAW_CONTACTS, the "_ID" is 1, then, i
got these codes:

...
...
getContentResolver.registerContentObserver(Uri.parse(“content://
com.android.contacts/raw_contacts/1”), true,  myContentObserver);
...
...
class MyContentObserver extends ContentObserver {
      @Override
       public void onChange(boolean selfChange) {
              ....
              //when the row(_ID == 1) has been changed, this callback
function will be called.
              //when others(_ID != 1) have been changed, this callback
function will NOT be called.
       }
}

do these codes work?

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