I am making an Android App in which i have some user Accounts and linked with each is some data. The data also has a download URL associated with a image stored in Firebase Storage.
I know how to retrieve data from Firebase cloud firestore so I will retrieve value of the download url in app by the line
FirebaseFirestore db = FirebaseFirestore.getInstance();
DocumentReference user = db.collection("School").document("Accouts").collection("students").document(name);
user.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
@Override
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
if (task.isSuccessful()) {
DocumentSnapshot doc = task.getResult();
String img_url = (String) doc.get("image");
}
}
});
but I don't know how to load that image and display in ImageView
I want to do it without using external library
The database is