Really? Do you have the bug details of ContactsProvider2? (Link or
something)?

On Oct 22, 9:25 am, Dmitri Plotnikov <[email protected]> wrote:
> I bet those are Facebook pictures.  There is a bug in ContactsProvider2 that
> does not allow loading of Facebook photos by any non-system apps.
>
>
>
>
>
>
>
> On Sun, Oct 17, 2010 at 1:26 AM, t2k269 <[email protected]> wrote:
> > Hi all,
>
> > In my app, I am using below code to obtain all contacts with PHOTO_ID:
>
> >                        Uri uri = ContactsContract.Contacts.CONTENT_URI;
> >                        Cursor cur = contentResolver.query(uri, new String[]
> > {
> >                                        ContactsContract.Contacts._ID,
>
> >  ContactsContract.Contacts.LOOKUP_KEY,
> >                                        ContactsContract.Contacts.PHOTO_ID,
>
> >  ContactsContract.Contacts.DISPLAY_NAME,
>
> >  ContactsContract.Contacts.HAS_PHONE_NUMBER,
> >                        }, CLAUSE_ONLY_VISIBLE, null,
> > ContactsContract.Contacts._ID);
>
> > The app has a list view to display all contacts and use the
> > ContactPhotoLoader in the stock contact app to load the contact photo
> > async. When running, some contact photo can be displayed correctly and
> > some cannot.
>
> > When clicking on the list items, the app will start the view contact
> > activity of the stock contacts app:
>
> >                                Uri uri =
> > ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI,
> > contact.getId());
> >                                Intent intent = new
> > Intent(Intent.ACTION_VIEW, uri);
> >                                startActivity(intent);
>
> > For the contacts, which photo cannot be displayed properly, is able to
> > display correctly in the stock view contact activity. I have compared
> > the source code of the stock contacts app and my app. They are doing
> > the same thing basically. I have also checked for the permissions used
> > by my app are covered the set of permissions used by the stock
> > contacts app. What's happening?
>
> > Regards,
> > Thomas
>
> > --
> > 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%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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

Reply via email to