|
|
@ -520,7 +520,9 @@ public class MicroPhotoService extends Service {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPMASTER);
|
|
|
|
Intent launchIntent = context.getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPMASTER);
|
|
|
|
// launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
|
|
|
// launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
|
|
|
context.startActivity(launchIntent);
|
|
|
|
if (launchIntent != null) {
|
|
|
|
|
|
|
|
context.startActivity(launchIntent);
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
ex.printStackTrace();
|
|
|
|
ex.printStackTrace();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1565,7 +1567,7 @@ public class MicroPhotoService extends Service {
|
|
|
|
|
|
|
|
|
|
|
|
String[] params = new String[]{""};
|
|
|
|
String[] params = new String[]{""};
|
|
|
|
File workDir = context.getFilesDir();
|
|
|
|
File workDir = context.getFilesDir();
|
|
|
|
int exitCode = 0;
|
|
|
|
int exitCode = -1;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Process process = Runtime.getRuntime().exec(cmd, params, workDir.getAbsoluteFile());
|
|
|
|
Process process = Runtime.getRuntime().exec(cmd, params, workDir.getAbsoluteFile());
|
|
|
|