title: Android webview audio recording does not work
body: <p>Voice recorder does not work in my webview application, which I write with Java. Please help. I don't know how to get a voice recording permit.
  here is my code:</p>
  
  <p>her is the complete code <a href="https://drive.google.com/file/d/1Ov5BesMJN7aXF9IGA-mJO0FObIqH4pWr/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1Ov5BesMJN7aXF9IGA-mJO0FObIqH4pWr/view?usp=sharing</a></p>
  
  <pre><code>    webView.setWebViewClient(new WebViewClient() {
  
  
  
          public void onReceivedError(WebView webView, int errorCode, String description, String failingUrl) {
              try {
                  webView.stopLoading();
              } catch (Exception e) {
              }
  
              if (webView.canGoBack()) {
                  webView.goBack();
              }
  
              webView.loadUrl("about:blank");
              Intent intent2 = new Intent(Main2Activity.this,Connection.class);
              startActivity(intent2);
              finish();
              super.onReceivedError(webView, errorCode, description, failingUrl);
          }
  
  
          public boolean shouldOverrideUrlLoading(WebView view, String url) {
  
              if (url.contains(".pdf")) {
                  Intent intent = new Intent(Intent.ACTION_VIEW);
                  intent.setDataAndType(Uri.parse(url), "application/pdf");
                  try {
                      view.getContext().startActivity(intent);
                  } catch (ActivityNotFoundException e) {
  
                  }
              }
  
              else {
                  webView.loadUrl(url);
              }
              return false;
  </code></pre>