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

Tags: ,



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?

Answer

Well not all cam app store on DCIM but you can

MediaStore.Images.Media.insertImage(
                getContentResolver(), bitmap,
                System.currentTimeMillis() + ".jpg", "DESCRIPTION HERE");


Source: stackoverflow