Start app changed

This commit is contained in:
jens 2021-05-08 19:58:44 +02:00
parent 769f227689
commit 2e09ea1c90

View File

@ -610,6 +610,9 @@ public class Actions
Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by action: " + param, 3); Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by action: " + param, 3);
paramsStartIndex = 1; paramsStartIndex = 1;
externalActivityIntent = new Intent(param); externalActivityIntent = new Intent(param);
externalActivityIntent.addCategory(Intent.CATEGORY_DEFAULT);
// if(externalActivityIntent.resolveActivity(autoMationServerRef.getPackageManager()) == null)
// Toast.makeText(context, "bad", Toast.LENGTH_LONG).show();
} }
externalActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); externalActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);