2011-06-25 14 views

答えて

0
Time t = new Time(); 
t.setToNow(); 
String session = t.format("%D %T")) //Strftime format 

File f = Environment.getExternalStorageDirectory(); 
String fullfilename = f.getAbsoluteFile() + "/Android/data/Photos/" ; 

File fileToWrite_data = new File(fullfilename,session + "_Data.txt"); 
FileOutputStream fos_data = new FileOutputStream(fileToWrite_data,true); 

http://php.net/manual/en/function.strftime.php

+0

どうもありがとう、私は)悪い英語のため申し訳ありませんが、ファイルからではない意味します。 SimpleDateFormat sdf = new SimpleDateFormat( "dd" + "MM" + "" + "yyyy" + "_" + "HH" + " - " + "mm" + " - " + " "ss"); fileOutputStream = new FileOutputStream( "/ sdcard/CameraExample /" + sdf.format(new Date())+ ".bmp"); – Domos

関連する問題