title: Allowing microphone access(permission) in WebView [Android Studio] [Java]
body: <p>I am currently working on a music tuner that uses html5 and a webview to display the 'application'. I've written the all the permission required in manifest and I think for webview there's another permission required.</p>
  
  <p>I am using this <a href="https://jbergknoff.github.io/guitar-tuner/" rel="noreferrer">https://jbergknoff.github.io/guitar-tuner/</a> as a sample redirect page for now</p>
  
  <p>Here's my manifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.raynordev.projectrosin"&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.MICROPHONE" /&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-feature android:name="android.hardware.audio.low_latency" /&gt;
  &lt;uses-feature android:name="android.hardware.audio.pro" /&gt;
  &lt;uses-feature android:name="android.hardware.microphone" android:required="true"/&gt;
  
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:theme="@style/Theme.AppCompat.Light.NoActionBar"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name="com.raynordev.projectrosin.HomeActivity"&gt;        
  
    &lt;/activity&gt;
   &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Here's my .java</p>
  
  <pre><code>public class HomeActivity extends AppCompatActivity {
  
  private WebView wv;
  private String TAG = "HomeActivity";
  private static final int REQUEST_INTERNET = 200;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_home);
      WebView wv = (WebView) findViewById(R.id.webView);
      wv.getSettings().setJavaScriptEnabled(true);
      wv.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
  
  
      wv.setWebViewClient(new WebViewClient());
      wv.setWebChromeClient(new WebChromeClient());
  
      wv.loadUrl("https://jbergknoff.github.io/guitar-tuner/");
   }
  }
  </code></pre>
  
  <p>If require more information from me, please let me know.</p>
  
  <p>Thank you everyone!!</p>