Picasso Library, Android: Using Error Listener

Picasso 2.0 allows you to attach a callback into a request.

https://github.com/square/picasso

The callback you are using is for “global” listener and it helps you debug errors that potentially happen due to a network load.

Use load(url).into(view, new Callback() {...}); in Picasso 2.0.

Remember to invoke cancelRequest(target) if you are using a Callback.

Leave a Comment