Skip to content

Instantly share code, notes, and snippets.

@pollux-
Created December 17, 2015 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pollux-/438708d25688f8e2e48f to your computer and use it in GitHub Desktop.
Save pollux-/438708d25688f8e2e48f to your computer and use it in GitHub Desktop.
Picasso fix for image https
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