Good morning everyone.
I'm trying to open the Android gallery from a .html
that I have in the assets
folder. This .html
I open from a webView and everything works great except for a button that should open the file browser but does not do anything though if that .html file is opened in a PC browser if I open the file browser.
I do not know if I've explained myself well, if I have not done it, say it and I try to explain it in a different way >. < '
This is the code I use:
function(editor) {
function openGallery() {
var input = $(document.createElement('input'));
input.attr("type", "file");
input.attr("accept", "image/*");
input.trigger('click'); // opening dialog
return false;
}
editor.addButton('openGallery', {
icon: 'insertdatetime',
//image: 'http://p.yusukekamiyamane.com/icons/search/fugue/icons/calendar-blue.png',
tooltip: "Insert image",
onclick: openGallery
});
}
That what it does is add a button to a file editor with the functionality of opening the file browser, in PC it opens it but in Android it does not do anything to me.