From 2e09ea1c907651421a552f284256e5adb36ff90e Mon Sep 17 00:00:00 2001 From: jens Date: Sat, 8 May 2021 19:58:44 +0200 Subject: [PATCH] Start app changed --- app/src/main/java/com/jens/automation2/Actions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index eeb8ebe4..97856aaf 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -610,6 +610,9 @@ public class Actions Miscellaneous.logEvent("i", "StartOtherApp", "Starting app by action: " + param, 3); paramsStartIndex = 1; 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);