Skip to content Skip to sidebar Skip to footer

Using Picasso Inside Volley Is Giving Me A Bad Frame-rate And Crashing My App

To make a long story short, I'm using Picasso inside Volley's onResponse() method to populate a listview with images. The code is working, but I'm getting a bad frame-rate, and the

Solution 1:

You can see( Link ) the comparison between the bests image loading libraries till date Picasso and Glide.The tutorial covers memory usages,quality etc all the things you want to know about both the libraries. So, after going through the tuts you get the point when using picasso resizing is considerable to get rid from memory issues.

Use Either resize() or fit() with picasso

 Picasso.with(this)
        .load("http://nuuneoi.com/uploads/source/playstore/cover.jpg")
        .resize(100, 100)//fit()
        .into(ivImgPicasso);

Solution 2:

I took out the Picasso code snippet and I realized I still had the same bad frame-rate. In conclusion, the problem was Volley! Now, I have to understand why.

Post a Comment for "Using Picasso Inside Volley Is Giving Me A Bad Frame-rate And Crashing My App"