Commits

shkoo committed 3afe254

add current date to icarus log filename

Comments (0)

Files changed (1)

src/to/rcpt/icarus/IcarusLogger.java

 import java.io.PrintWriter;
 
 import android.telephony.SmsManager;
+import android.text.format.Time;
 import android.widget.CompoundButton;
 
 public class IcarusLogger implements DataSource.IcarusListener {
 
 	public void startLogging() {
 		try {
-			File f = new File("/sdcard", logfileName);
+			Time t = new Time();
+			t.setToNow();
+			File f = new File("/sdcard", logfileName + "." + t.format3339(true));
 			try {
 				f.createNewFile();
 			} catch (IOException e) {