Telefonda imzanızın çekilebileceği bir program yapıyorum. Şu anda bir görüntü kaydediyor ancak paketini imzalaması gereken birden fazla müşteri olduğu için birden fazla resim kaydetmek istiyorum. Her türlü yardım için çok minnettarım.sdcard içinde farklı isimlerle birden fazla resim kaydedin
public void save() {
File sdImageMainDirectory = new File("/sdcard/mySignatures");
sdImageMainDirectory.mkdirs();
String nameFile = "newpic";
FileOutputStream out = null;
try {
out = new FileOutputStream(sdImageMainDirectory.toString() +"/" + nameFile + ".jpg");
mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
out.flush();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
out=null;
}