Contacts.People contains already deleted/out of date contacts

by Daniel » Fri, 13 Mar 2009 15:22:47 GMT


Sponsored Links
 Hi,
when doing the following query on the Contacts DB I observe some
really strange behaviour. I get old contacts which I have already
deleted or updated in the GMail web app. These wrong contacts are not
visible in GMail nor in the Android Contacts app. But they are still
within the DB. E. g. I get duplicated contacts with different _ids for
the same person after deleting an eMail address of some person. I have
already done some manual syncs, but it didn't help.

cursor = contentResolver.query(Contacts.People.CONTENT_URI,
                                        new String[] { Contacts.People._ID, 
Contacts.People.NAME },
                                        Contacts.People.NAME + " LIKE ?",
                                        new String[] { "myName..." },
                                        Contacts.People.DEFAULT_SORT_ORDER);

Am I doing something wrong or is there a known issue on this?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Position StaticLayout on Canvas

Hi
I am trying to draw some text onto a canvas.
I was using canvas.drawText() but i need the text to be wrapped so i am now 
using StaticLayout.draw(canvas) which works fine except i cannot position 
the text.
I have read some posts that suggest using canvas.translate(x,y) but when i 
have to draw more than one "text box" i translate the canvas the first time 
and the text box is positioned but then when i translate the next "text box" 
the canvas just translates off the screen.
Is there any way to position the text relatively to the screen. 

Any help would be great.
Thanks

-- 

2. Installing on SD card for Honeycomb

It looks like for honeycomb, there are new groupings on how items are
stored? Like in the settings page, I see media and apps being grouped
separately.  Are there any information about this?

It also appears that SD card support isn't available yet but will be
added.  Will installing apps on SD cards still be supported?

-- 

3. Tabbed View

4. Minta testimoni

5. Sejenis acdsee di android

6. Mainan baru: Nook Color (ebook reader/tablet ecclair)

7. Not recomend to upgrade --- Share : Nexus S setelah 2.3.3