Skip to content
Advertisement

How to save bitmap in new folder in DCIM to show it in gallery on cellphone (the cellphone doesn’t have SDCard)?

I have an URL, I download the image in it and convert it to bitmap. I want to download the bitmap in the internal memory of the cellphone to be in the gallery. I found solutions but includes SDcard and I need to save the image even if the cellphone doesn’t have external memory. How can I achieve that?

Advertisement

Answer

Well not all cam app store on DCIM but you can

MediaStore.Images.Media.insertImage(
                getContentResolver(), bitmap,
                System.currentTimeMillis() + ".jpg", "DESCRIPTION HERE");
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement