-
Notifications
You must be signed in to change notification settings - Fork 1
Home
dami138 edited this page Dec 1, 2021
·
1 revision
*firebase 참고
db.collection("RawFish").orderBy("Season") //RawFish 테이블에서 Season 기준으로 정렬한 데이터
.get()
.addOnSuccessListener { result ->
for (document in result) {
Log.d(TAG, "${document.data}") //모든 데이터 정보 뽑아오기
// Log.d(TAG, "\"${document.getData().get("Name")}\"," + //항목별 데이터 뽑아오기
// "${document.getData().get("Season")}," +
// "\"${document.getData().get("HowToEat")}\"," +
// "\"${document.getData().get("Cooking")}\"," +
// "\"${document.getData().get("Description")}\"," +
// "\"${document.getData().get("Efficacy")}\","+
// "\"${document.getData().get("Image")}\",")
}
}
.addOnFailureListener { exception ->
Log.d(TAG, "Error getting documents: ", exception)
}