|
|
|
@ -157,7 +157,11 @@ public class CrashHandler implements Thread.UncaughtExceptionHandler {
|
|
|
|
|
String time = mFormatter.format(new Date());
|
|
|
|
|
String fileName = "crash-" + time + ".log";
|
|
|
|
|
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
|
|
|
|
|
String path = MicroPhotoContext.buildMasterAppDir(MpMstApplication.getContext()) + "logs/";
|
|
|
|
|
String appPath = MicroPhotoContext.buildMasterAppDir(MpMstApplication.getContext());
|
|
|
|
|
if (appPath == null) {
|
|
|
|
|
appPath = "/sdcard/" + MicroPhotoContext.PACKAGE_NAME_MPMASTER + "/";
|
|
|
|
|
}
|
|
|
|
|
String path = appPath + "logs/";
|
|
|
|
|
File dir = new File(path);
|
|
|
|
|
if (!dir.exists()) {
|
|
|
|
|
dir.mkdirs();
|
|
|
|
|