Disclaimer: I had to implement this solution because of some imperatives (coder life…), but this is not good programming practice. Hopefully Android 5 will let us do it properly.
I have a web application that shares the code on desktop, iOS and Android.
Everything works fine, except that Android does not support <input type="file"> in WebView out of the box. While iOS will happily show an image
picker if the accept attributes is set to image types, Android’s WebView
will just do nothing.