title: FileProvider.getUriForFile returns null
body: <p>I'm trying to take a photo in my device's camera, when I call the method that handles the image capture the app crashes because of a nullpointer exception. I don't know what information is missing with my FileProvider as the stacktrace points the nullpointer into my FileProvider.getUriForFile statement.</p>
  
  <p>Here's my code
  HomeActivity</p>
  
  <pre><code>public void takePhoto(View view){
          //camera stuff
          Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
          String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
  
          //folder stuff
          File imagesFolder = new File(Environment.getExternalStorageDirectory(), "AnimEncylopedia");
          if(!imagesFolder.exists()) {
              imagesFolder.mkdirs();
          }
  
          File image = new File(imagesFolder, "QR_" + timeStamp + ".png");
  
  
   Uri uriSavedImage = FileProvider.getUriForFile(HomeActivity.this, "com.encyclopedia.fileprovider", image);
  
          intent.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);
          startActivityForResult(intent, 1);
      }
  </code></pre>
  
  <p>AndroidManifest</p>
  
  <pre><code>&lt;provider
              android:authorities="com.encyclopedia.fileprovider"
              android:name="android.support.v4.content.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>Files_path.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;external-path name="my_images" path="Encyclopedia/"/&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>How can I fix this?</p>