|
|
|
@ -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++) {
|
|
|
|
|