: may fail creating file

This commit is contained in:
seven332 committed 2015-06-07 19:18:50 +08:00
1 parent 3b25fcf45c
commit cfe0ca9801
1 file changed
+2 -2
@@ -99,8 +99,8 @@ public class Crash {
sb.append("======== CrashInfo ========\n").append(result).append("\n");
try {
long timestamp = System.currentTimeMillis();
String time = Utils.sDate.format(System.currentTimeMillis());
String fileName = "crash-" + time + "-" + timestamp + ".log";
//String time = Utils.sDate.format(System.currentTimeMillis());
String fileName = "crash-" + timestamp + ".log";
String path = null;
boolean position = false;
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {