I have the following code snippet to define the description of the photos that my application will take and where the photos will be saved.
private File criarArquivo() throws IOException {
String descricao = new SimpleDateFormat("dd_MM_yyyy_HH:mm:ss").format(new Date());
File pasta = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File imagem = new File(pasta.getPath() + File.separator + "DiabetesMonitor_" + descricao + ".jpg");
return imagem;
}
I would like to save these photos to a folder with the name of my app in the Android photo gallery and not along with the other photos. What should I do?