Created
December 17, 2015 13:40
-
-
Save pollux-/438708d25688f8e2e48f to your computer and use it in GitHub Desktop.
Picasso fix for image https
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OkHttpClient client = new OkHttpClient(); | |
client.setProtocols(Arrays.asList(Protocol.HTTP_1_1)); | |
Picasso picasso = new Picasso.Builder(this).listener(new Picasso.Listener() { | |
@Override | |
public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) { | |
LogUtils.LOGD(TAG, "Exception URL " + exception.getMessage()); | |
exception.printStackTrace(); | |
} | |
}) .downloader(new OkHttpDownloader(client)).build(); | |
picasso.setLoggingEnabled(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment