I’m creating an app that creates and saves images. Currently I am saving them to /sd_card/my_app_name/. The files are there and everything, but they are not recognized from the Android’s gallery. Is there any way to fix this?
Thanks!
well, I figured this out quickly enough :
try {
MediaStore.Images.Media.insertImage(getContentResolver(), filePath, "image name", "image dexscription"); } catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
The way to do this is this: