|
|
|
@ -136,13 +136,15 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
Intent resIntent = getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPRES);
|
|
|
|
|
resIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
|
|
|
|
resIntent.putExtra("initres", 1);
|
|
|
|
|
String sn = MicroPhotoService.getSerialNumber();
|
|
|
|
|
if (!TextUtils.isEmpty(sn)) {
|
|
|
|
|
resIntent.putExtra("sn", sn);
|
|
|
|
|
if (resIntent != null) {
|
|
|
|
|
resIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
|
|
resIntent.putExtra("initres", 1);
|
|
|
|
|
String sn = MicroPhotoService.getSerialNumber();
|
|
|
|
|
if (!TextUtils.isEmpty(sn)) {
|
|
|
|
|
resIntent.putExtra("sn", sn);
|
|
|
|
|
}
|
|
|
|
|
startActivity(resIntent);
|
|
|
|
|
}
|
|
|
|
|
startActivity(resIntent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|