简体   繁体   中英

Best Practice For Displaying Facebook Profile Pictures In an Android App

I want to have an android app that displays users' facebook profile pictures. I'm wondering what the bast practice is for this purpose. Should I make ImageView load pictures at runtime from facebook URI? or save the pictures to my own server and send them to the devices in bytes on demand? or cache them locally? What is the "common" way of doing this?

Personally, I would cache them locally unless you intend to have hundreds of them. It would make the app work offline and display the images a lot faster.

You would have to update them regularly though as a user's Facebook profile picture can change fairly often.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM