Last active
April 17, 2019 05:47
-
-
Save jirawatee/154aa5c174eb643a4ff93421f9d5f55e to your computer and use it in GitHub Desktop.
Firebase Storage - Download data via url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void downloadDataViaUrl() { | |
| Helper.showDialog(this); | |
| imageRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() { | |
| @Override | |
| public void onSuccess(Uri uri) { | |
| Helper.dismissDialog(); | |
| mTextView.setText(uri.toString()); | |
| } | |
| }).addOnFailureListener(new OnFailureListener() { | |
| @Override | |
| public void onFailure(@NonNull Exception exception) { | |
| Helper.dismissDialog(); | |
| mTextView.setText(String.format("Failure: %s", exception.getMessage())); | |
| } | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@olciaa