If I have full ArrayList in my FirebaseFireStore , how can i read it to local arraylist , I mean what function should use?
** public void stuArr() {
noteRef.get()
.addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {
@Override
public void onSuccess(DocumentSnapshot documentSnapshot) {
if (documentSnapshot.exists()) {
studentArrayList.add(documentSnapshot.getString("studentArrayList"));
}
}
})
.addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Toast.makeText(getActivity() , "Error!", Toast.LENGTH_SHORT).show();
Log.d("TAG", e.toString());
}
});
}
**
Source: Android Studio Questions