Created
May 13, 2019 07:53
-
-
Save imrankst1221/f062b89d77b99302a764890b58c45cdc to your computer and use it in GitHub Desktop.
Write Data On Firestore
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 fun writeDataOnFirestore(){ | |
mFirestore.collection("student_info").document("student_list") | |
.set(studentInfo) | |
.addOnSuccessListener { | |
Toast.makeText(mContext, "DocumentSnapshot successfully written!", Toast.LENGTH_LONG).show() | |
Log.d(TAG, "DocumentSnapshot successfully written!") | |
initListView() | |
}.addOnFailureListener { | |
e -> Log.e(TAG, "Error writing document", e) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment