Contact pictures synced from facebook for android app

All your problems with Audio, Video and Images.

Contact pictures synced from facebook for android app

Postby yash » Sat Oct 02, 2010 5:50 pm

Hello guys,

I am trying to get access to contact pictures but unsuccessfully. My code retrieves pictures I added manually (which by then synced with gmail) but it returns null for contacts having pictures synced with facebook for android application.

Here is my code:

Code: Select all
         Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, Long.parseLong(PhotoId));
         InputStream input = ContactsContract.Contacts.openContactPhotoInputStream(context.getContentResolver(), uri);
         if (input == null) {
            Log.e(PhotoId, "null"); // this returns null for contacts having facebook for android pictures.
         }
         return BitmapFactory.decodeStream(wizInput);


How can I load pictures from facebook too? I guess it is possible since the default messaging app and contact app from android loads the pictures correctly.
yash
Freshman
Freshman
 
Posts: 3
Joined: Fri Jul 30, 2010 2:58 pm

Top

Re: Contact pictures synced from facebook for android app

Postby jaumard » Mon Dec 13, 2010 7:10 pm

Hi,

Did you find a solution? I search a way to do this too!
I see apps make this but i don't know why...

Anyone can help us please.
jaumard
Freshman
Freshman
 
Posts: 8
Joined: Sat Aug 21, 2010 1:51 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 8 guests