App doesn’t load an Image from an HTTPS URL when run on the emulator.
Sample code:
URL url = new URL("https://someserver.com/photo.jpg");
mImageView.setImageBitmap(BitmapFactory.decodeStream(url.openStream()));
The image loads just fine when run on an actual device. Also the emulator loads the image if it’s accessed via HTTP instead of HTTPS.
Am I doing something wrong or is this a known issue?
Use below code for display image in imageview from url.
And also use below code for that.