last day (14 days later) » 

9:35 AM
0
Q: android display image from sdcard usiing AQuery or Picasso

Pragnamessage="file:///storage/sdcard0/My Folder/images/Camera_1415795981117.jpg"// image is available at this location Picasso.with(context).load( message+"") .into(holder.iv_message_image); have also tried message="storage/sdcard0/Fresh IM/images/Camera_1415795981117.jpg...

 
But for local image why are you using picasso and AQuery. It can be easily accessible from sdcard after you decode it.
 
and if i am using piccsso for URL then each time it taking time... after 2 sec it display image plz help
 
If you want to load image using picasso from sd card then you need to convert your file to URI then load that URI.
 
ok ok but if i am loading image from URL then also it takes time of 1 to 2 sec why?
 
Because when you loading image it will take time for decode too and if possible if it is high resolution image. It depends on its scale factor.
 
9:35 AM
ok mean that will take time yes?
 
Yes it will. You can check my answer.
 
any other api that much good and with less configuration do you know?
 
I think LRU Cache..
 
then what the wtsapp use in that it not taking time to load image
 
It will take too. Some time network problem or some times make its slow because of server down. Also image decoding process will be faster after scale bitmap object using scale factor and its sample size.
 
9:35 AM
if i use holder.iv_message_image.setImageURI(Uri.parse(new File(message).toString())); then it gives me error on scrolling up down frequently listview( image view containing in listview)
 
@Pragna What error it shows? Lunch time here. Sorry.
 
ok same here see you after lunch:)
ok used File f = new File(message); Picasso.with(context).load(f).into(holder.iv_message_image); But list view taking too much time to scroll just like hanging it
 
Are you using view holder pattern? Also did you convert it your file to URI same as my answer?
 
yes i use Uri uri = Uri.fromFile(new File(message)); Picasso.with(context).load(uri) .into(holder.iv_message_image); but NOT LOADING IMAGE IN SOME PHONES
 
@Pragna Because it can't identify that resource from the path. You need to use Environment.getExternalStorageDirectory().getAbsolutePath() for get your image.
 
9:35 AM
not working please help
 
Not working means image not found?
in some device?
 
 
2 hours later…
12:07 PM
1415874597000 is what form of date?
 

last day (14 days later) »