|
|
|
@ -7,6 +7,7 @@ import android.content.res.AssetManager;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.os.Handler;
|
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
import android.util.Log;
|
|
|
|
|
|
|
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
|
|
import androidx.core.graphics.Insets;
|
|
|
|
@ -30,6 +31,8 @@ import java.util.concurrent.ExecutionException;
|
|
|
|
|
|
|
|
|
|
public class MainActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
private final static String TAG = "MPRES";
|
|
|
|
|
|
|
|
|
|
private Handler mHandler;
|
|
|
|
|
@Override
|
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
@ -39,6 +42,7 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
Intent intent = getIntent();
|
|
|
|
|
int initres = intent.getIntExtra("initres", 0);
|
|
|
|
|
if (initres == 1) {
|
|
|
|
|
Log.i(TAG, "Init Config for MpApp");
|
|
|
|
|
mHandler = new Handler();
|
|
|
|
|
final String sn = intent.getStringExtra("sn");
|
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
@ -58,6 +62,7 @@ public class MainActivity extends AppCompatActivity {
|
|
|
|
|
};
|
|
|
|
|
initMpAppConfigurations(context, mHandler, sn, runnable);
|
|
|
|
|
} else if (initres == 2) {
|
|
|
|
|
Log.i(TAG, "Init Config for MpMaster");
|
|
|
|
|
mHandler = new Handler();
|
|
|
|
|
final String sn = intent.getStringExtra("sn");
|
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
|