Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- storageRef.child("tu_direccion_a_la_foto/blkbl....jpg").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
- @Override
- public void onSuccess(Uri uri) {
- // Conseguimos el enlace de descarga
- Uri downloadUri = taskSnapshot.getMetadata().getDownloadUrl();
- String urlFoto = downloadUri.toString(); //El enlace a la foto hecho string
- }
- }).addOnFailureListener(new OnFailureListener() {
- @Override
- public void onFailure(@NonNull Exception exception) {
- // Manejamos algun error
- }
- });
Add Comment
Please, Sign In to add comment