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
You can visit Google Developer recommended training here Codelabs - Android
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