I want to catch only update,insert and delete operation of Contacts when onChange is called. How can i do it ...?
<p>I have following code.</p>

<pre><code>public class TestContentObserver extends Activity {
    int contactCount = 0;
    final String[] projection = new String[] { RawContacts.CONTACT_ID, RawContacts.DELETED };
    Cursor curval;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        curval = getContentResolver().query(RawContacts.CONTENT_URI, projection, null, null, null);
        contactCount = curval.getCount();

        curval.registerContentObserver(new ContentObserver(new Handler()) {
            @Override
            public void onChange(boolean selfChange) {
                getChangedContactDetails();
            }
            @Override
            public boolean deliverSelfNotifications() {
                return true;
            }
        });

    }



    public void getChangedContactDetails(){
        // how can I catch the affected contact details
    }
}
</code></pre>

<p>when i make a call from contacts it also goes to onChange function. But i want to take only insert,update and delete of contacts. Please can you help me.</p>

<p>Thank you</p>
