title: BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
body: <p>I'm trying to get picture from filepath concerning the BitMapFactory.decodeFile for drawing bitmap in Canvas and get this exception:</p>
  
  <pre><code> Unable to decode stream: java.io.FileNotFoundException: 
  /content:/media/external/images/media/40: open failed: ENOENT (No such file 
  or directory)
  02-02 10:03:19.793 3371-3371/com.group.digit.razvoj.appointment 
  E/AndroidRuntime: FATAL EXCEPTION: main
  </code></pre>
  
  <p>but when i use that filepath to setImage in Fragment it works fine.</p>
  
  <p>Here is my code:</p>
  
  <pre><code> String urilogo = helper.getUri();
          File imgFile = new  File(urilogo);
          BitmapFactory.Options bmOptions = new BitmapFactory.Options();
          Bitmap bitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
  </code></pre>
  
  <p>In Fragment where it works:</p>
  
  <pre><code>String urilogo = helper.getUri();        
      if(urilogo!= null || urilogo!= "") {
          imageView.setImageURI(Uri.parse(urilogo));
      }
  </code></pre>