I am working on an application, where i take pictures from a camera and store it in a separate folder in sd card. The problem what i am facing is, once the pictures are stored in a folder on sd card the Image folder is not being displayed in android native gallery.
This should be something similar to whatsapp image folder. how is it possible?
I am working on an application, where i take pictures from a camera and
Share
use the function MediaStore.Images.Media.insertImage to create a thumbnail and show the image in the default android gallery.
String imageName = “imagepath”;
File sdImageMainDirectory = new File(imageName);
MediaStore.Images.Media.insertImage(getContentResolver(),
sdImageMainDirectory.getAbsolutePath(),sdImageMainDirectory.getName(), “description”);