How to delete a RAW contact in android 2.x without having the Aggregation contact ID

by Timo Prill » Wed, 21 Apr 2010 23:09:14 GMT

Sponsored Links

i am fighting against the 2.x contact api...

my problem is, i only have the RAW_CONTACT_ID of a contact.
i want to delete this raw contact programmatically.

i tried the following (even in a row):

                    ContactsContract.Contacts.Data.RAW_CONTACT_ID + EQUALS
                            + rawContactID, null);

                    ContactsContract.RawContacts.CONTACT_ID + EQUALS
                            + rawContactID, null);

                    ContactsContract.Data.RAW_CONTACT_ID + EQUALS
                            + rawContactID, null);

after these deletions, i see an empty contact called "(Unknown)" left in 
my Adress book.

this contact can not even be deleted via menu -> delete.

now my question is, how can i delete a contact without having the 
aggregation contact id?

did i miss some table to go through?
is my only chance to set the "deleted" flag for the raw_contact_id?
and: if i never sync with a sync-adapter afterwards, will my "deleted" 
contact remain in the database forever?

scratching my head..


Other Threads

1. Search @ Market

Numpang nanya ya, pertanyaan newbie.

Apa iya hasil search Market itu beda-beda antar versi, misal antar Donut dan Eclair ? Misal saya cari di Droid Eclair IM+ bisa dapet, tapi coba cari di Donut kok gak dapet ya. thanks -- "Indonesian Android Community [id-android]"

2. Launcher activity


can anyone tell me where the applications like browser,contacts,
settings get populated when the Launcher activity is being launched?

Is that SlidingDrawer does this population?

Does the AllAppsGridView has any part in  this?


3. i want to control speed "ellipsize=marquee"

4. Problem in switching views

5. Soft keyboard on activity startup

6. How to remove the afterimage of AutoCompleteTextView?

7. how to use bootanimaiton.zi