I need to save a photo in the gallery.
The code below helps if I have my photo on a sd-card. But what should I do if I have no sdcard? Only bytes or temporary file?
MediaStore.Images.Media.insertImage(getContentResolver(), src, title , description);
Try this code below: