title: Failed to find configured root that contains
body: <p>I'm getting the following error :</p>
  
  <pre><code>05-29 01:08:02.924: E/AndroidRuntime(5447): FATAL EXCEPTION: IntentService[com.sample.muzeitest.MuzeiClass]
  05-29 01:08:02.924: E/AndroidRuntime(5447): java.lang.IllegalArgumentException: Failed to find configured root that contains /data/data/com.sample.muzeitest/files/wallpaper0.png
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:678)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:377)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at com.sample.muzeitest.MuzeiClass.muzeiContentUri(MuzeiClass.java:58)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at com.sample.muzeitest.MuzeiClass.onUpdate(MuzeiClass.java:37)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at com.google.android.apps.muzei.api.MuzeiArtSource.processAndDispatchSubscriberAdded(MuzeiArtSource.java:614)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at com.google.android.apps.muzei.api.MuzeiArtSource.processSubscribe(MuzeiArtSource.java:581)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at com.google.android.apps.muzei.api.MuzeiArtSource.onHandleIntent(MuzeiArtSource.java:539)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.os.Handler.dispatchMessage(Handler.java:99)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.os.Looper.loop(Looper.java:137)
  05-29 01:08:02.924: E/AndroidRuntime(5447):     at android.os.HandlerThread.run(HandlerThread.java:61)
  </code></pre>
  
  <p>When I try to use my <code>FileProvider</code> with the muzei app.</p>
  
  <p>I'm having an activity ( which adds some bitmaps from a drawable folder to the <code>/data/data/APP-SPACE-HERE/files/</code>   ) and a class extending the <code>MuzeiArtSource</code> :</p>
  
  <pre><code>public class MuzeiClass extends MuzeiArtSource {
  
  
  Uri imgUri;
  
  
  public MuzeiClass() {
      super(MuzeiClass.class.getName());
  
  }
  
  
  @Override
  public void onCreate() {
      super.onCreate();
     // setUserCommands(BUILTIN_COMMAND_ID_NEXT_ARTWORK); // manual switch image
  
  }
  
  @Override
  protected void onUpdate(int arg0) {
  
  
         imgUri = muzeiContentUri();  
  
  
      publishArtwork(new Artwork.Builder()
             .imageUri( imgUri )
             .title("Example image")
             .byline("Unknown person, c. 1980")
  //             .viewIntent(new Intent(Intent.ACTION_VIEW,
  //                     Uri.parse("http://example")))
             .build());       
  
  }
  
  
  public Uri muzeiContentUri()    {
  
      File newFile = new File(getFilesDir(), "wallpaper0.png");
      Uri contentUri = FileProvider.getUriForFile(getApplicationContext(), "com.sample.muzeitest.fileprovider", newFile);
  
  
      return contentUri;
  }
  
  
  
  }
  </code></pre>
  
  <p>Manifest file contains <code>provider</code> for <code>FileProvider</code> and <code>service</code> tags :</p>
  
  <pre><code>        &lt;service
          android:name="com.sample.muzeitest.MuzeiClass"
          android:label="@string/title_activity_muzei_service"
          android:description="@string/muzei_description"
          android:icon="@drawable/ic_source"&gt;
           &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.apps.muzei.api.MuzeiArtSource" /&gt;
          &lt;/intent-filter&gt;
          &lt;meta-data android:name="color" android:value="#fa0" /&gt;
      &lt;/service&gt;     
  
  
         &lt;provider
              android:name="android.support.v4.content.FileProvider"
              android:authorities="com.sample.muzeitest.fileprovider"
              android:exported="false"
              android:grantUriPermissions="true"&gt;
              &lt;meta-data
                  android:name="android.support.FILE_PROVIDER_PATHS"
                  android:resource="@xml/muzei_wallpapers" /&gt;
        &lt;/provider&gt;  
  </code></pre>
  
  <p>I also have this xml file in <code>res/</code> folder :</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;files-path name="my_images" path="files/"  /&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>I made <a href="https://stackoverflow.com/questions/23901537/muzei-fatal-exception-intentservicetaskqueueservice">this</a> question yesterday but the problem was about the uri name. 
  I use <code>adb shell</code> to go the specified path <code>/data/data/com.sample.muzeitest/files/wallpaper0.png</code>  and I can confirm that files are there saved.  Read also some similar questions on SO but none helped.</p>