确保目录存在

hdrplus
Matthew 7 months ago
parent 11f1dcd2f6
commit f8b02ee28c

@ -224,8 +224,15 @@ public class MicroPhotoService extends Service {
try {
final String appPath = MicroPhotoContext.buildMpAppDir(this);
File lockerFile = new File(appPath);
lockerFile = new File(lockerFile, "data/alive/running");
lockerFile = new File(lockerFile, "data/alive");
try {
lockerFile.mkdirs();
} catch (Exception ex) {
ex.printStackTrace();
}
lockerFile = new File(lockerFile, "running");
mAppRunningFile = new FileOutputStream(lockerFile);
for (int idx = 0; idx < 3; idx++) {

Loading…
Cancel
Save