Firebase Storage works in a similar way when extracting data. Though there are different ways to retrieve. One of the most important factor is how you save your data. According to which you will be able to retrieve them.
Here:
storageRef.child("users/me/profile.png").getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
// Got the download URL for 'users/me/profile.png'
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Handle any errors
}
});
// Alternatively way to get download URL
storageRef.child("users/me/profile.png").getDownloadUrl().getResult();
The location of child is very crucial and that should be a part of your login.
For example in a news structure, it can be:
storageRef.child("newsID/articleimage/image.jpg")
newsID - Unique id for each article. IMPORTANT! when you create your article in order to get separate images.
and that, "image.jpg" can be downloaded various ways as explained here: Documentation.