From 07f8100058254b626edbc8efdac8026bdf876ee4 Mon Sep 17 00:00:00 2001 From: Ian Clelland Date: Tue, 22 Jul 2014 13:53:33 -0400 Subject: [PATCH] Filter out non-launchable intents --- framework/src/org/apache/cordova/CordovaUriHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/src/org/apache/cordova/CordovaUriHelper.java b/framework/src/org/apache/cordova/CordovaUriHelper.java index 1a113ded..5cd8ce2d 100644 --- a/framework/src/org/apache/cordova/CordovaUriHelper.java +++ b/framework/src/org/apache/cordova/CordovaUriHelper.java @@ -98,6 +98,9 @@ public class CordovaUriHelper { try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url)); + intent.addCategory(Intent.CATEGORY_BROWSABLE); + intent.setComponent(null); + intent.setSelector(null); this.cordova.getActivity().startActivity(intent); } catch (android.content.ActivityNotFoundException e) { LOG.e(TAG, "Error loading url " + url, e);