[android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-12 Thread Biosopher
After scouring the web and confirming it myself, Facebook's photos are stored in a manner that prevents access by other apps. This inability to access Facebook sync'd photos is a side effect of how Facebook syncs contacts. Facebook creates an account on the device using Android's AccountManager (

Re: [android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-12 Thread appel
Devices with Android 2.0 or newer support it. -- 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

Re: [android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-11 Thread Grays
i think you can get the FB photo by use the this code public static Bitmap getContactPhoto(Context context, long photoId,int defaultIco) { Cursor photoCursor = null; Bitmap photoBm = null; try { photoCursor = context.getContentResolver().query( ContentUris.withAppendedId(Data.CONTENT_URI, phot

Re: [android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-11 Thread Kumar Bibek
But, do all the phones/devices use the same storage? I guess not. In such a case your app or code will obviously not work for all. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Wed, Jan 12, 2011 at 1:51 AM, Biosopher wrote: > That's right, appel. I'm trying to access th

[android-developers] Re: Accessing Facebook photos from the Contacts provider

2011-01-11 Thread Biosopher
That's right, appel. I'm trying to access the FB contacts through the ContactsContract. Seems like the Facebook photos are stored with special permissions. I can get an FB photo's row _id from the Photos db but cannot retrieve the photo for some reason. -- You received this message because you