title: Read an Image/file from External storage Android
body: <p>I'm trying to load an image from external storage. I set the permissions, I tried different ways, but none of them works.  </p>
  
  <pre><code>BitmapFactory.Options options = new BitmapFactory.Options();
      options.inPreferredConfig = Bitmap.Config.ARGB_8888;
  
      Bitmap bitmap = BitmapFactory.decodeFile(file.toString()); 
  
      tv.setImageBitmap(bitmap);
  </code></pre>
  
  <p>and this one, </p>
  
  <pre><code>FileInputStream streamIn = new FileInputStream(file);
  Bitmap bitmap = BitmapFactory.decodeStream(streamIn); 
  
      tv.setImageBitmap(bitmap);
          streamIn.close();
  </code></pre>