[Solved] Volley Library return bitmap


I think it has such a functionality:
http://blog.lemberg.co.uk/volley-part-3-image-loader

Sample code:

String imageUrl = "http://some.server.com/image.png";
Volley.newRequestQueue(this).add(new ImageRequest(imageUrl, new Response.Listener<Bitmap>() {
    @Override
    public void onResponse(Bitmap bitmap) {
        // Do something with loaded bitmap...
    }
}, 1024, 1024, null, null));

But there is better library for loading images from the Internet – Picasso

Sample code:

String imageUrl = "http://some.server.com/image.png";  
// This request is synchronous, so it shouldn't be made from main thread
Bitmap bitmap = Picasso.with(this).load(imageUrl).get(); 

3

solved Volley Library return bitmap