I have problems when storing my photo, I create a folder using mkdir and through a string, I get the contents of an EditText from my application, to give the name of the folder. After starting the camera I wanted to save the photo in the same folder created, so I use the same string to save it:
@Override
public void onClick(View arg0){
nome = nomeNovo.getText().toString();
File folder = new File("sdcard/" + nome);
if (!folder.exists()){
pasta = folder.mkdir();
}
if (pasta == false){
linear.addView(teste);
}
else {
Intent intent = new Intent (MediaStore.ACTION_IMAGE_CAPTURE);
startActivity(intent);
// Toast.makeText(getApplicationContext(), "Endereço: sdcard/" + nome , Toast.LENGTH_SHORT).show();
File arquivo = new File("sdcard/" + nome);
}
The problem is that the photo is still stored in the camera folder, not the folder I created.