Cordova/Phonegap plugin that supplies a File Chooser for Android 4+. The File Chooser does not require installation external file manager
Plugin has been successfully tested on Android 4+ device with Cordova 3.
To install the plugin
cordova plugin add https://github.com/MaginSoft/MFileChooser.git
The plugin creates the object window.plugins.mfilechooser
. To use, call the open()
method:
window.plugins.mfilechooser.open([], function (uri) {
alert(uri);
}, function (error) {
alert(error);
});
window.plugins.mfilechooser.open(['.doc', '.xls', '.ppt'], function (uri) {
alert(uri);
}, function (error) {
alert(error);
});
September 16, 2014 Initial release
I wrote this plugin basing on the simple-file-chooser by ingyesid