title: Android - Choose File button in WebView
body: <p>I'm having a problem where I've got a page loaded in WebView - I'm not going to post code for the entire application, because my problem is very specific: the "Choose File" button in my HTML page works on the Android Studio created emulator, but nowhere else.</p>
  
  <p>The button runs this code:</p>
  
  <pre><code>&lt;input type='file' id='fileInput' accept='text/plain' onchange='openFile(event);'&gt;
  var openFile = function(event) {
          var input = event.target;
  
          var reader = new FileReader();
          reader.onload = function(e){
              /* various string parsing */
          };
          reader.readAsText(input.files[0]);
  };
  </code></pre>
  
  <p>This works perfectly fine on my emulator which is API 23: clicking the button opens the device's default File chooser to pick a file. However, on my actual phone, which is API 16, clicking this button does nothing. Furthermore, on a Genymotion emulator, which is API 18, clicking the button does nothing. Is there something I can do to fix this? The button produces no error messages on both my phone and the Genymotion emulator, it just sits there and nothing happens.</p>
  
  <p>I need the app to work on a device that allows speech-to-text, so I can't only use the emulator, as much as I'd like to.</p>