title: Save picture to storage using Glide
body: <p>I'm trying to add a <strong>Download</strong> feature to my app, I'm using <strong>Glide Library</strong> to load the pictures from their <strong>URL</strong>, with the code below, I can save the picture to the device storage, but it's not working as I expected.</p>
  
  <pre><code>                    new AsyncTask&lt;FutureTarget&lt;Bitmap&gt;, Void, Bitmap&gt;() {
                          @Override protected Bitmap doInBackground(FutureTarget&lt;Bitmap&gt;... params) {
                              try {
                                  return params[0].get();
                              } catch (Exception ex) {
                                  return null;
                              }
                          }
                          @Override protected void onPostExecute(Bitmap bitmap) {
                              if(bitmap == null) return;
                              MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, "Art_"+System.currentTimeMillis());
                          }
                      }.execute(Glide.with(getApplicationContext()).load(url).asBitmap().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(width, height));
  </code></pre>
  
  <p>can anyone help me to get resolve this issue?</p>