"Try , Works for Firebase too"
"1: Create the method below in the class activity ,NOTE image_preview = ImageView "
private void loadImage(String pUrl) {
Thread imageDataThread = new Thread(() -> {
try {
URL tUrl = new URL(pUrl);
Bitmap imageBitmap = BitmapFactory.decodeStream(tUrl.openConnection().getInputStream());
runOnUiThread(() -> image_preview.setImageBitmap(imageBitmap));
} catch(IOException pExc) {
showToast("Error loading image for this question!");
pExc.printStackTrace();
}
});
imageDataThread.start();
}
"2: Call the method inside the onCreate and parse the string link/url"
loadImage("LINK HERE");