From 913bd577d9ba738e6391a4376a06e20a8f68f779 Mon Sep 17 00:00:00 2001 From: meddlesome Date: Mon, 8 Sep 2014 02:49:56 +0700 Subject: [PATCH] Update FileOpener2.java adding option to showing chooser when open the file --- .../github/pwlin/cordova/plugins/fileopener2/FileOpener2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java index ee3408a..7f47f04 100644 --- a/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java +++ b/src/android/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java @@ -96,7 +96,7 @@ public class FileOpener2 extends CordovaPlugin { /* * @see http://stackoverflow.com/questions/14321376/open-an-activity-from-a-cordovaplugin */ - cordova.getActivity().startActivity(intent); + cordova.getActivity().startActivity(Intent.createChooser(intent,"Open File in...")); callbackContext.success(); return true;