  String timeStamp = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); String pictureFile = "ZOFTINO_" + timeStamp; File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES); File image = File.createTempFile(pictureFile, ".jpg", storageDir); pictureFilePath = image.getAbsolutePath(); return image; 