Glide loads the image asynchronously, so your test on the bitmap immediately after starting this load operation returns null, since the image has not yet been loaded.
To find out when your image is really loaded, you can install a listener in your Glide request, for example:
Glide.with(this)
.load("http://graph.facebook.com/1615242245409408/picture?type=large")
.listener(new RequestListener<Uri, GlideDrawable>() {
@Override
public boolean onException(Exception e, Uri model, Target<GlideDrawable> target, boolean isFirstResource) {
return false;
}
@Override
public boolean onResourceReady(GlideDrawable resource, Uri model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {
return false;
}
})
.into(imageView);
mrlem source
share