.addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {
@Override
public void onSuccess(DocumentSnapshot documentSnapshot) {
MyVariable = documentSnapshot.get("money").toString();
textView1.setText(MyVariable);
}
});
I want to take the Myvariable data outside of onSuccess, Please help please, I didn't find the Statisfied and Working idea in entrie Stackoverflow