addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [blrdroid] how to handle images in android

From: Pranay a.
Sent on: Monday, January 13, 2014 6:45 PM
As Amrit Suggested, Volley is more a general purpose Ultra fast networking library, if you sole purpose is to load Images then use Picaso, if you want to loa lot of data that can be images, text, files etc use volley, but volley will not have any caching.

You can use a L1 Cache from Jake Wharton along with volley for that purpose https://github.com/JakeWharton/DiskLruCache


On Mon, Jan 13, 2014 at 5:02 PM, Srikanth Nutigattu <[address removed]> wrote:

Quick thoughts

Through json are u sending URLs of images or the encoded images themselves

Are you loading images to a view holder?

Are the images rightly sized for the phone resolutions

Are you loading images as AsyncTask or the main/UI thread itself

What do u mean by crash? Out of memory issues or ANR errors

Srik

On Jan 13,[masked]:12 PM, "Rahul Sharma" <[address removed]> wrote:
Hi,

Need some help.

Working on an app where we download the profile images of users one after the other from a JSON API , and display them in a bitmap much like how it happens in Tinder where we show the profile image of each user and then swipe to see the next one.

Problem : The app seems to crash if we download more than 4-5 images. Need some suggestion on how do we handle the images without compromising on image quality and still keeping speed.

We have implemented paging on the API with page size 10 but the app crashes for 4 user itself.Is there a way to manage this better please?



Regards,
Rahul Sharma Executive Director
3Embed Software Technologies pvt ltd.| (Website) www.3embed.com





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Rahul Sharma ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Rahul Sharma, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Srikanth Nutigattu ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Srikanth Nutigattu, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Pranay Airan 

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy