title: Replacing the deprecated taskSnapshot.getDownloadUrl().toString();
body: <p>I am following an android tutorial and I have been stuck on the deprecated method. I am unable to get the download url to enable me show the image in an ImageView</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          if (requestCode == PICTURE_RESULT &amp;&amp; resultCode == RESULT_OK) {
              Uri imageUri = data.getData();
              StorageReference ref = FirebaseUtil.mStorageRef.child(imageUri.getLastPathSegment());
              ref.putFile(imageUri).addOnSuccessListener(this, new OnSuccessListener&lt;UploadTask.TaskSnapshot&gt;() {
                  @Override
                  public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
                      String url = taskSnapshot.getDownloadUrl().toString();
                      String pictureName = taskSnapshot.getStorage().getPath();
                      deal.setImageUrl(url);
  </code></pre>
  
  <p>How can I modify the line <code>"String url = taskSnapshot.getDownloadUrl().toString();"</code> so that I can be able to get the download link?</p>