(Unknown) contact showing up after a modify

by Simon MacDonald » Thu, 13 Jan 2011 06:28:44 GMT

Sponsored Links
 Hi all,

I have a weird issue on an Android 2.2 device.  I have an existing
contact and I do a modify operation on it via:

ContentProviderOperation.Builder builder =
        .withSelection(ContactsContract.Data.CONTACT_ID + "=? AND " +
        ContactsContract.Data.MIMETYPE + "=?",
        new String[]{id,

mApp.getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops);

The contact gets modified correctly.  All of the new values show up
for the Contacts name.

However, if I look in my Contacts app there is a new contact called
"(Unknown)" that shows up after I do a modify.  I can insert as many
contacts as I want but every modify creates a new "(Unknown)" contact.

Anyone have any ideas?

Simon Mac Donald


Re: (Unknown) contact showing up after a modify

by Simon MacDonald » Thu, 13 Jan 2011 08:16:46 GMT

 Sorry all, there was a newInsert() as part of the larger function that
was causing this problem.

Simon Mac Donald

On Wed, Jan 12, 2011 at 5:28 PM, Simon MacDonald


Sponsored Links

Other Threads

1. Keypad Lose focus when appeared under list view

I have displayed a listview under the TabHost/Widget and every list
item has a text field for quantity but when ever i touch any quantity
edit text the keypad appears but edittext loses focus please provide
me any solution.


2. canvas/surface, what shaped was touched?

Hi Im pretty new when it comes to android, but looks like there is
allott of smart people here that might be able to help me.

Do android shapes that you draw on a canvas or surface view have ID
like in SVG?

If you use ontouchevent, how can you detect what circle that was


3. Receive call through code

4. Video game development

5. Grid View setting style through code

6. RSS - APP

7. Problem with integrating Voice Recording with Voice Recognition