title: Upload photo from gallery or take from camera in Webview
body: <p>My application is webbased and need to upload photos, website have a file input button, i made it work with this </p>
  
  <pre><code>wv = new WebView(this);
  wv.setWebViewClient(new WebViewClient());  
  wv.getSettings().setJavaScriptEnabled(true);
  wv.getSettings().setAllowFileAccess(true);
  
  wv.setWebChromeClient(new WebChromeClient()  
  {    
           public void openFileChooser(ValueCallback&lt;Uri&gt; uploadMsg, String acceptType, String capture){
                 mUploadMessage = uploadMsg;  
                 Intent i = new Intent(Intent.ACTION_GET_CONTENT);  
                 i.addCategory(Intent.CATEGORY_OPENABLE);  
                 i.setType("image/*");  
                 MainActivity.this.startActivityForResult( Intent.createChooser( i, "File Chooser" ), MainActivity.FILECHOOSER_RESULTCODE );
  
  }
  </code></pre>
  
  <p>but it shows just gallery to pick photos, i need to take from camera at the same time.</p>
  
  <p>i tried this solution <a href="https://stackoverflow.com/questions/13284903/upload-camera-photo-and-filechooser-from-webview-input-field">Upload camera photo and filechooser from webview INPUT field</a> but its only opening camera, not uploading taken photo</p>