Hi Tone, This was before my time, but I think you are doing it right. As far as I remember, Android 1.5/6 did not support any kind of integration with Outlook. Whatever mechanism was used to import the Outlook contacts must have messed them up. On Android 1.5/6, when you were adding a contact, you were supposed to add it to the MyContacts group explicitly. So reading the MyContacts group should give you all _correctly_ imported contacts and filter out those automatically added by Gmail.
Cheers, - Dmitri On Sat, Apr 3, 2010 at 1:03 PM, DulcetTone <[email protected]> wrote: > I am using this in Android 1.x: > > > final String[] proj = new String[] { > Contacts.People._ID, > Contacts.People.STARRED, > Contacts.People.NAME > }; > > final String selection = null; > Uri uri = Uri.parse("content://contacts/groups/system_id/" > + Groups.GROUP_MY_CONTACTS + "/members"); > > Cursor people = context.getContentResolver().query( > uri, > proj, > selection, > null, > Contacts.People.DEFAULT_SORT_ORDER); > > > and people who have contacts imported from Outlook are missing those > contacts. > > Why is this so under-documented, with access provided through textual > URIs and database calls? > > Can someone show me a definitive code blurb that gets all the contacts > in the Android contact panel and NOT those crufty pretend contacts? > > Thanks in advance. > > tone > > > On Feb 25, 1:49 am, Dmitri Plotnikov <[email protected]> wrote: > > I believe the system group "my contacts" was used for that purpose. > > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > To unsubscribe, reply using "remove me" as the subject. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

