Hi, the fact your got 3 account from the
ContactsContract.Contacts.CONTENT_URI means they are not aggregated
together.
You can aggregate this those contacts using the default contact
manager (com.android.contacts), or you can do it from the code.

On 23 ינואר, 13:43, L0rdAli3n <42.john.doe.1...@googlemail.com> wrote:
> Thanks for the link. Unfortunately I wasn't able to find the query.
> 3.614 lines of code are really hard to understand. Could you
> assist me?
>
> On 16 Jan., 08:05, Zsolt Vasvari <zvasv...@gmail.com> wrote:
>
> > Hi, the source code to theContactsapp is available here:
>
> >http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;...
>
> > As Dmitri mentioned it, if you see the desired list in theContacts
> > app, dig into the source and find out what query it is issuing the
> > ContactsProvider.  And then you can issue the same query and get the
> > same result.
>
> > On Jan 12, 5:13 am, L0rdAli3n <42.john.doe.1...@googlemail.com> wrote:
>
> > > Hi Community,
>
> > > I'm working on an app right now, which should handle the users
> > >contacts. But I have a basic problem: When I grab a list of all
> > >contactsfrom the ContactsContract.Contacts.CONTENT_URI I expect to
> > > get a list of all aggregated/mergedcontacts.
> > > For example the list should contain a contact "John, Doe". Which also
> > > has a facebook contact an a twitter contact joined in this one "John,
> > > Doe". But on the list ofcontactsgrabbed from
> > > ContactsContract.Contacts.CONTENT_URI I exptect only "John, Doe".
> > > My problem is that when I do grab a list ofcontactsfrom
> > > ContactsContract.Contacts.CONTENT_URI I have a listitem for every
> > > single contact, so instead of one single item "John, Doe" I have
> > > three:
> > >  - John, Doe (gmail)
> > >  - Doe John (facebook)
> > >  - Johnny (twitter)
>
> > > Why is that so and is there any way to get the list of aggegrated
> > >contacts?
>
>

-- 
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