android - How to load image from SD card using Picasso library -


i need load images sd card gridview. efficiency i'm using picasso library

picasso.with(activity).load(images.get(position).getdatapath())             .resize(96, 96).centercrop().into(viewholder.image); 

i used following code in adapter. unfortunately m unable see images please can 1 help.

note , can suggest efficient image loading library load images sd card.

requirement dont load image every time when scrolling. if loaded dont load image on scrolling

to load file need convert uri first

uri uri = uri.fromfile(new file(images.get(position).getdatapath()));  picasso.with(activity).load(uri)             .resize(96, 96).centercrop().into(viewholder.image); 

requirement dont load image every time when scrolling. if loaded dont load image on scrolling

  • picasso excellent this

Comments

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -