SHARE
TWEET

Untitled

a guest Oct 12th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private void UpdateData() {
  2.         DocumentReference contact = db.collection("PhoneBook").document("Contacts");
  3.         contact.update(NAME_KEY, "Kenny");
  4.         contact.update(EMAIL_KEY, "kenny@gmail.com");
  5.         contact.update(PHONE_KEY, "090-911-419")
  6.                 .addOnSuccessListener(new OnSuccessListener<Void>() {
  7.             @Override
  8.             public void onSuccess(Void aVoid) {
  9.                 Toast.makeText(MainActivity.this, "Updated Successfully",
  10.                         Toast.LENGTH_SHORT).show();
  11.             }
  12.         });
RAW Paste Data
Top