title: Xamarin Forms File Provider not set
body: <p>I am currently going through the process of Learning Xamarin.Forms. I am currently attempting to implement Camera functions using the Plugin.Media.CrossMedia library.</p>
  
  <p>Implemented below:</p>
  
  <pre><code>public async Task&lt;ImageSource&gt; StartCamera()
  {
      await CrossMedia.Current.Initialize();
  
  
      if (Plugin.Media.CrossMedia.Current.IsTakePhotoSupported &amp;&amp; CrossMedia.Current.IsCameraAvailable)
      {
              var photo = await CrossMedia.Current.TakePhotoAsync(new StoreCameraMediaOptions() { SaveToAlbum=false, SaveMetaData=false});
  
              if (photo != null)
                  return ImageSource.FromStream(() =&gt; { return photo.GetStream(); });
              else
                  return null;
  
  
  
      }
      else
      {
          return null;
      }
  }
  </code></pre>
  
  <p>However upon executing the 'TakePhotoAsync' method I recieve the following error. </p>
  
  <p><strong><code>System.ArgumentException: Unable to get file location. This most likely means that the file provider information is not set in your Android Manifest file. Please check documentation on how to set this up in your project.</code></strong></p>
  
  <p>I have tried looking this up but to no avail. My AndroidManifest.xml file looks like this at the moment.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="RCPTTracker.Android" android:versionCode="1" android:versionName="1.0"&gt;
      &lt;uses-sdk /&gt;
      &lt;application android:label="RCPTTracker.Android"&gt;&lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>My inkling is that I need to declare something in here, but I haven't been able to find what, and all tutorials i have followed don't go through anything with setting up a File Provider.</p>
  
  <p>Any suggestions?</p>