Home > DeveloperSection > Forums > How to get the information of updated contact in android whenever we add/update/delete any contact in phone contact list
Allen Scott

Total Post:46

Posted on    November-16-2015 5:24 AM

 Android Android  Android Controls  Android Libraries 

 1 Reply(s)
 571  View(s)
Rate this:
In my implementation, i want to get the information of changed contact whenever a contact is modified or deleted in the phone contact list.Whenever we modify or delete contact, deliverSelfNotifications() and onChange() method is called but i am not getting how to get the information of this changed contact

MyContentObserver contentObserver = new MyContentObserver();
            ContactsContract.Contacts.CONTENT_URI, true, contentObserver);
    private class MyContentObserver extends ContentObserver {
        public MyContentObserver() {
        public boolean deliverSelfNotifications() {
            return true;
        public void onChange(boolean selfChange) {

Please help

Mayank Tripathi
Mayank Tripathi

Total Post:397

Posted on    November-16-2015 5:42 AM

see android.database.ContentObserver + android.database.CursorJoiner, google will help you on how to use it 

Don't want to miss updates? Please click the below button!

Follow MindStick