Update FileOpener2.java

adding option to showing chooser when open the file
This commit is contained in:
meddlesome 2014-09-08 02:49:56 +07:00
parent ef5c633f47
commit 913bd577d9

View File

@ -96,7 +96,7 @@ public class FileOpener2 extends CordovaPlugin {
/* /*
* @see http://stackoverflow.com/questions/14321376/open-an-activity-from-a-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(); callbackContext.success();
return true; return true;