title: FileProvider Xamarin not displaying file
body: <p>I’m trying to display a PDF file using a file provider. However when the PDF reader opens it does not contain the content of the file. The file is stored in the internal storage of the application within the files folder. </p>
  
  <p>Manifest: </p>
  
  <pre><code>    &lt;provider android:name="android.support.v4.content.FileProvider" android:authorities="com.mycom.myapp.fileprovider" android:exported="false" android:grantUriPermissions="true"&gt;
          &lt;meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /&gt;
      &lt;/provider&gt;
  </code></pre>
  
  <p>File_paths:</p>
  
  <pre><code>&lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;files-path name="export" /&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>pdfViewRenderer.cs: </p>
  
  <pre><code>string libraryPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal);   
  var path = Path.Combine(libraryPath, fileName);
  
  
  string application = "application/pdf";
  Java.IO.File javaFile = new Java.IO.File(fileName);//externalPath  
  
  
  Android.Net.Uri androidURI = FileProvider.GetUriForFile(Forms.Context.ApplicationContext, "com.mycom.myapp.fileprovider", javaFile);
  
  
  Intent intent = new Intent(Intent.ActionView);
  intent.SetDataAndType(androidURI, Filetype); 
  intent.AddFlags(ActivityFlags.GrantReadUriPermission);
  intent.SetFlags(ActivityFlags.NoHistory);
  intent.SetFlags(ActivityFlags.ClearWhenTaskReset);
  
  
  Forms.Context.StartActivity(Intent.CreateChooser(intent, "Open PDF"));
  </code></pre>