diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index 97856aaf..c2372132 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -611,6 +611,9 @@ public class Actions paramsStartIndex = 1; externalActivityIntent = new Intent(param); externalActivityIntent.addCategory(Intent.CATEGORY_DEFAULT); +// Context c = autoMationServerRef.getApplicationContext(); +// c.getApplicationContext() +// externalActivityIntent.setPackage("com.wireguard.android");//this did the trick actually // if(externalActivityIntent.resolveActivity(autoMationServerRef.getPackageManager()) == null) // Toast.makeText(context, "bad", Toast.LENGTH_LONG).show(); }