'How to save data from Firestore into string and use it localy [duplicate]
reference.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
@Override
public void onComplete(@NonNull Task<DocumentSnapshot> task) {
if(task.getResult().exists()){
SkinType = task.getResult().getString("SkinType");
}
}
});
I want to use SkinType String out of the method on complete
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
