|
|
|
@ -138,6 +138,10 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
startActivity(resIntent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|