Reputation: 63
I used Picasso by the next lines:
ImageView im = (ImageView)findViewById(R.id.picassotest);
Picasso.with(this).setLoggingEnabled(true);
Picasso.with(this).load("http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg").into(im);
but nothing shows when I run the app.
I've added the INTERNET
permission but still nothing happens.
The only logging lines I got from this is:
12-01 17:28:49.460 7453-7453/? D/Picasso: Main created [R0] Request{http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg}
12-01 17:28:49.463 7453-7472/? D/Picasso: Dispatcher enqueued [R0]+5ms
12-01 17:28:49.464 7453-7474/? D/Picasso: Hunter executing [R0]+6ms
12-01 17:28:49.476 7453-7472/? D/Picasso: Dispatcher batched [R0]+18ms for error
12-01 17:28:49.479 7453-7453/? D/: HostConnection::get() New Host Connection established 0xb42d6b00, tid 7453
12-01 17:28:49.701 7453-7472/? D/Picasso: Dispatcher delivered [R0]+243ms
12-01 17:28:50.265 7453-7453/? D/Picasso: Main errored [R0]+807ms
What am I doing wrong?
Upvotes: 2
Views: 3465
Reputation: 5803
This problem is cause because of caching.
Device Setting -> Apps -> Your Application Name -> Clear Cache
Works in my case.
Upvotes: 1
Reputation: 1106
I don't have enought points to put comments.
Do you have tried to use the picasso listener to get the stacktrace?
ImageView im = (ImageView)findViewById(R.id.picassotest);
Picasso picasso = new Picasso.Builder(this).listener(new Picasso.Listener() {
@Override
public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
exception.printStackTrace();
}
}).build();
picasso.with(this).setLoggingEnabled(true);
picasso.with(this).load("http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg").into(im);
Upvotes: 8