2
I have the following code snippet to define the description of the photos my app 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 in a folder with the name of my app in Android photo gallery and not along with the other photos. What should I do ?