I have an object data structure like below:
These is the code I have retreived the document data:
DocumentReference docRef = db.collection("deyaPayUsers").document(mAuth.getUid()).collection("Split").document(mAuth.getUid()).collection("SentInvitations").document(documentId);
docRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
@Override
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
if (task.isSuccessful()) {
DocumentSnapshot document = task.getResult();
if (document.exists()) {
Log.d(TAG, "DocumentSnapshot data: " + document.getData());
Object value = document.getData();// Here I added the data to the object type value
System.out.println("values"+ value);
} else {
Log.d(TAG, "No such document");
}
} else {
Log.d(TAG, "get failed with ", task.getException());
}
}
});
I have retreived these data from Firestore database. Now I need amount, phone Number and Status in all the Invite(1,2) and add into the list view . I am not able to get these fields first . After that I need to add them to list view . And also whenever user update field Status then listview should also update.