I'm setting an ImageView using setImageBitmap
with an external image url. I would like to save the image so it can be used later on even if there is no internet connection. Where and how can I save it?
URL imageurl = new URL("http://mysite.com/me.jpg");
Bitmap bitmap = BitmapFactory.decodeStream(imageurl.openConnection().getInputStream());
This code will help you in generating the bitmap from the image url.
This question answers the second part.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With