Created
October 11, 2017 23:57
-
-
Save kenny-io/8c3db83ea9733af67580985549caec3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void UpdateData() { | |
DocumentReference contact = db.collection("PhoneBook").document("Contacts"); | |
contact.update(NAME_KEY, "Kenny"); | |
contact.update(EMAIL_KEY, "[email protected]"); | |
contact.update(PHONE_KEY, "090-911-419") | |
.addOnSuccessListener(new OnSuccessListener<Void>() { | |
@Override | |
public void onSuccess(Void aVoid) { | |
Toast.makeText(MainActivity.this, "Updated Successfully", | |
Toast.LENGTH_SHORT).show(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment