title: How to implement open file chooser for Android 5.0 above in Xamarin?
body: <p>I am using below code for opening file chooser, I am not sure how to implement it for Android 5.0 and above.</p>
  
  <pre><code>Action&lt;IValueCallback, Java.Lang.String, Java.Lang.String&gt; callback;
  
  public FileChooserWebChromeClient(Action&lt;IValueCallback, Java.Lang.String, Java.Lang.String&gt; callback)
  {
      this.callback = callback;
  }       
  
  //For Android 4.1
  [Java.Interop.Export]
  public void openFileChooser(IValueCallback uploadMsg, Java.Lang.String acceptType, Java.Lang.String capture)
  {
      callback(uploadMsg, acceptType, capture);
  }
  
  // For Android &gt; 5.0
  //I am stuck here, taken from Android
  [Java.Interop.Export]
  public bool onShowFileChooser(WebView webView, ValueCallback&lt;Uri[]&gt; filePathCallback, WebChromeClient.FileChooserParams fileChooserParams)
  {
      mUploadCallbackLollipop = filePathCallback;
      openFileChooserActivity();
      return true;
  }
  </code></pre>
  
  <p>Callback function:</p>
  
  <pre><code>var chrome = new FileChooserWebChromeClient((uploadMsg, acceptType, capture) =&gt;
  {
      MainActivity.UploadMessage = uploadMsg;
      if(Build.VERSION.SdkInt &lt; BuildVersionCodes.Kitkat)
      {
          var i = new Intent(Intent.ActionGetContent);
  
          //To set all type of files
          i.SetType("image/*");
  
          //Here File Chooser dialog is started as Activity, and it gives result while coming back from that Activity.
          ((MainActivity)this.Context).StartActivityForResult(Intent.CreateChooser(i, "File Chooser"), MainActivity.GALLERY_INTENT_CALLED);
      }
      else
      {
          var i = new Intent(Intent.ActionOpenDocument);
          i.AddCategory(Intent.CategoryOpenable);
  
          //To set all type of files
          i.SetType("image/*");
  
          //Here File Chooser dialog is started as Activity, and it gives result while coming back from that Activity.
          ((MainActivity)this.Context).StartActivityForResult(Intent.CreateChooser(i, "File Chooser"), MainActivity.GALLERY_KITKAT_INTENT_CALLED);
      }             
  });
  </code></pre>
  
  <p>How to implement callback for Android 5.0 above, please someone help me</p>