title: Issue in downloading image from Firebase Storage and saving it in SD Card
body: <p>I had uploaded the image on Firebase Storage successfully. I have the URI and using Glide, I'm able to show the image on an <code>ImageView</code>.  I want to save this image on my SD card but I'm getting an exception </p>
  
  <pre><code>java.io.FileNotFoundException: No content provider:
  https://firebasestorage.googleapis.com/..
  </code></pre>
  
  <p>In here:  </p>
  
  <pre><code>    try {
              Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), myUri);
              SaveImage(bitmap);
          } catch (IOException e) {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>Here is my complete code:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_display_pic);
  
          Intent intent = getIntent();
          String str = intent.getStringExtra("pic");
          Uri myUri = Uri.parse(str);
          try {
              Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), myUri);
              SaveImage(bitmap);
          } catch (IOException e) {
              e.printStackTrace();
          }
          ImageView imageView = (ImageView)findViewById(R.id.displayPic);
  
          Glide.with(getApplicationContext()).load(myUri)
                  .thumbnail(0.5f)
                  .crossFade()
                  .diskCacheStrategy(DiskCacheStrategy.ALL)
                  .into(imageView);
      }
      private void SaveImage(Bitmap finalBitmap) {
  
          String root = Environment.getExternalStorageDirectory().toString();
          File myDir = new File(root + "/saved_images");
          myDir.mkdirs();
          Random generator = new Random();
          int n = 10000;
          n = generator.nextInt(n);
          String fname = "Image-"+ n +".jpg";
          File file = new File (myDir, fname);
          if (file.exists ()) file.delete ();
          try {
              FileOutputStream out = new FileOutputStream(file);
              finalBitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);
              out.flush();
              out.close();
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  </code></pre>
  
  <p>URI looks like this:</p>
  
  <pre><code>https://firebasestorage.googleapis.com/example.appspot.com/o/pics%2Fc8742c7e-8f59-4ba3-bf6f-12aadfdf4a.jpg?alt=media&amp;token=9bsdf67d-f623-4bcf-95d7-5ed97ecf1a21
  </code></pre>