Retrieving data from firebase to android studio using kotlin depending on text value

后端 未结 1 457
暖寄归人
暖寄归人 2021-01-26 01:41

how to get the id of data retrieved from the firebase so I can limit the data being retrieved from the firebase depending on the id.

here is my current code, it retrieve

相关标签:
1条回答
  • 2021-01-26 02:09

    You can visit Google Developer recommended training here Codelabs - Android

    • I filter Android category for you. You can find Web / Mobile quick training here or demo to follow along.

    It is written on Java , but the idea is still there.

    And you can quickly convert your code to Kotlin on Android Studio and study them later if your not familiar with Kotlin that much. From your Refactor menu (If I'm not mistaken for late version below 3.2.1).

    .

    .

    From Firebase Docs don't forget to change the tab to Kotlin.

    . If there is no Kotlin tab from the documentation, try the Firebase from your tool, and select the Realtime Database. It will show you the basic code. Since I'm using Java , it is showing Java code. Since your default lang is Kotlin, maybe it will show Kotlin code.

    .

    Kotlination - Firebase

    0 讨论(0)
提交回复
热议问题