I am following http://wiki.forum.nokia.com/index.ph...e_Change_Event to get the notification whenever a contact is deleted from the phone.
Now the problem is that I never get any information/detail for the contact that has been just deleted from contact database. For instance I use the below snippet to get the contact details:
// Handle contact database events //
//if any contact deleted in phonebook
Can anyone suggest the way to get the details of deleted contact..
// Opens the default contact database
iContactsDb = CContactDatabase::OpenL();
// Read contact using id
CContactItem* contact = iContactsDb->ReadContactL(aData);
// Get a reference to the contact item's field set
CContactItemFieldSet& fieldSet = contact->CardFields();
// Read and display all fields
for (TInt j = 0; j < fieldSet.Count(); j++)
//THIS PART IS NEVER EXECUTED....