Contacts.People contains already deleted/out of date contacts

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

Sponsored Links
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..." },

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

Other Threads

1. Vertical ScrollView in a Gallery

I'm looking for information on how to accomplish a layout that
consists of a Gallery which contains ScrollView.

I've chosen to use these two classes because:
- Gallery provides left / right scrolling and a nice deceleration and
locking on view boundaries
- ScrollView provides the vertical scrolling for content that is
greater than the height of the gallery

By default, implementing the above, you can scroll horizontally when
you are not touching the contained scroll view. What i need is a way
to scroll the Gallery horizontally while the user is touching anywhere
within the Gallery and then properly handle vertical scrolling in the

This is seen in the Google Scoreboard application.

I've attempted to do this by implementing a GestureDetector but it is
unclear to me how I need to configure the GestureDetector to properly
route the touch events between the Gallery and the ScrollView.

Thanks for you feedback,



2. Flash file android

Hi all,

For adverti{*filter*}t in my app ,I want to use flash file .

Can anyone know how to create flash file in android Or how o use exisiting
flash file in Android app.


Narendra B


3. How to pause my media

4. How to use PathClassLoader for files that are not installed.

5. How to add scrollbar in a custom view.

6. How can i call one activity to other activity without using intents and services

7. Cannot sendBroadcast Intent to receiver which has permission.