First, I did specify the permission to write contacts and read contacts in
the manifest file.
Here's the code that gets executed for the deletion of a contact:
case R.id.menu_delete_contact:
Intent intent_delete = new Intent(Intent.ACTION_DELETE,
mContactUri);
intent_delete.putExtra("finishActivityOnSaveCompleted", true);
// Start the edit activity
startActivity(intent_delete);
return true;
Also note that mContactUri is valid, because I have another intent for
editing the contact and it works. What could possible be the problem?
--
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.