Ran into a weird problem, not sure if its me or something in my code.

I added 2 contacts manually from the phone, imported some 400 from
Facebook. Total of 420 contacts displayed in the contacts list.

When i run this query

 Cursor cursor = this.getContentResolver()
              .query(ContactsContract.Contacts.CONTENT_URI,
                     new String[] { ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME },
                     null,
                     null,
                     null);


I seemingly get back only 7 rows. Two are the contacts that I added,
and 5 (arbitrarily chosen maybe?) from facebook.

Of the 5 I imported from facebook, they all have @gmail email
accounts. I have other contacts registered with @gmail emails either
so I'm not sure why I dont get back all 400+.

Anyone see what I'm doing wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to