mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Update FileOpener2.java
adding option to showing chooser when open the file
This commit is contained in:
parent
ef5c633f47
commit
913bd577d9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user