using Xamarin.Forms.CustomAttributes; using Xamarin.Forms.Internals; namespace Xamarin.Forms.Controls { [Preserve (AllMembers = true)] [Issue (IssueTracker.Bugzilla, 34727, "(A) Cannot browse files from WebView on Android", PlatformAffected.Android)] public class Bugzilla34727 : TestContentPage { protected override void Init () { var webView = new WebView (); var htmlSource = new HtmlWebViewSource { Html = @"

Test Web View File Chooser

  1. Open the camera app.
  2. Take a picture.
  3. Return to this page.
  4. Tap the 'Choose File' button; a file picker should appear.
  5. Select the picture you just took.
  6. The text 'No file chosen' should change to the name of your image file.

" }; webView.Source = htmlSource; Content = webView; } } }