title: Android - Unable to open content: file:///storage/emulated/0
body: <p>I've a widget with nine-patch image background.
  The image was saved in /sdcard/mydir/bgs.</p>
  
  <p>When I try to load a image with setImageViewUri method, I've this error:</p>
  
  <pre><code>Unable to open content: file:///storage/emulated/0/sdcard/mydir/bgs
  </code></pre>
  
  <p>..</p>
  
  <p>then</p>
  
  <p>...</p>
  
  <pre><code>open failed: EACCES (Permission denied)
  </code></pre>
  
  <p>This appears only on the the home screen and only with Nexus 10 and Nexus 7 (with latest launcher 4.4 this bug not exist). I've also have some RemoteViews on my application and all works correctly.</p>
  
  <p>I've also added into manifest either READ_EXTERNAL_STORAGE, either WRITE_EXTERNAL_STORAGE.</p>
  
  <p>How can I solve?</p>
  
  <p>UPDATE: I've inspect the method setImageViewUri and I've found that it changes the path of my file.</p>
  
  <pre><code>if (value != null) {
              // Resolve any filesystem path before sending remotely
              value = value.getCanonicalUri();
              if (StrictMode.vmFileUriExposureEnabled()) {
                  value.checkFileUriExposed("RemoteViews.setUri()");
              }
          }
  </code></pre>
  
  <p>This method receive my value (/sdcard/mydir/bgs) and changes it into (storage/emulated/0/sdcard/mydir/bgs). But this file not exists into system via adb.</p>