Save Data in Firebase Realtime Database using Kotlin | Realtime Database | Kotlin | Android Studio
HTML-код
- Опубликовано: 30 июл 2024
- Save Data in Firebase Realtime Database using Kotlin | Realtime Database | Kotlin | Android Studio
Source Code: github.com/foxandroid/Realtim...
Follow me on Instagram: / foxandroidblog
Follow me on Facebook: / foxandroidblog
---------------------------------------------------------------------------------------------------------------------------------------------------------
Equipment I Use to Make My videos:
📱 Phone -: amzn.to/3px6ucS
🎧Earphones -: amzn.to/3JecI98
🎙️Mic - : amzn.to/310u7Rp
🎙️Mic - : amzn.to/3He96SW
🔊Speakers - : amzn.to/3Hgfzg8
💾External HardDrive - amzn.to/3JoRzZV
💻 My PC build: www.amazon.in/shop/foxandroid
--------------------------------------------------------------------------------------------------------------------------------------------------------
Hey Developers,
In this video, I have explained :
* How to connect the android app with the firebase project.
* How to Store data to firebase realtime database using Kotlin in Android Studio.
Kotlin - Variables and Data Types
• Kotlin - Variables and...
ViewBinding - Android Studio
• ViewBinding - Android ...
Save Data in Firebase Realtime Database in Android Studio
• Save Data in Firebase ...
How to Retrieve data from Firebase Database in Android Studio
• How to Retrieve data f...
How to Update Data in Firebase Realtime Database in Android Studio
• How to Update Data in ...
How to Delete Data From Firebase Realtime Database in Android Studio
• How to Delete Data Fro...
Equipment I Use to Make My videos:
📱 Phone - Redmi Note 9 Pro: amzn.to/2MeyRLt
🎧Earphones - Realme Buds 2: amzn.to/3hzJDb1
🎙️Mic - Boya BYM1: amzn.to/350Isfw
🔊Speakers - Beats Pill: amzn.to/38V9aHF
💾External HardDrive - amzn.to/3rEKTOF
💻 My PC build :
Processor - amzn.to/3hAucit
MotherBoard - amzn.to/3b0d1FO
RAM - amzn.to/3rMYqn4
GPU - amzn.to/38VhvuG
SSD - amzn.to/3n7yj6Z
HDD - amzn.to/3pCE5z6
CABINET - amzn.to/38VupJc
PSU - amzn.to/3pDdbHq
MONITOR: amzn.to/3aWZL4P
MOUSE: amzn.to/3aZMgBq
KEYBOARD: amzn.to/3b06ew8
#realtimedatabase #firebase #kotlin Наука
Hey, how would you save another entity in one entity? For example, you have a data class User and the User has Post which is another data class. How would you implement this scenario? Thank you.
You make really good videos! Thanks!! :)
It will be really helpful if you make the full CRUD with otlin and firebase
Thank you for this tutorial. great work
That's really helpful for beginners, get succeed by watching this video after facing failures today about 7 to 8 times
Do you have any problem where the Realtime Firebase does not automatically create a reference node?
Bro make the Playlist of it...
Waiting for remaining CRUD operations...
非常棒的教學!!! 很感謝你 :)
For those of you who get a Failure message, be sure to make your database rules true for read and write.
That is funny. I've been wondering why my apps can't write databases. The answer is that database's rules for read and write set to be false. You guys need to check the "rules" on firebase web. It is between "Data" and "Backups"
what if user try to register username that already exists in database? error?
man i binding can't read the parameters from the dataclass i already included thet viewbinding in the gradle as well as on the main file
Halo. I love this tutorial. But i wanna ask you. How to save data with the many node.. Example
Users > name > age .. then all data in the Age node.. 🙏
great video, just one question, if i have more than one activity and both most write or read data from the database, do i need to create a database instance per each activity? thanks
Yes you have to
your video helped me Man!
Hi Sir may I know what is the gradle setting?
sir this is the register part, can you do a login part video?
can we do the same from a fragment? if yes how
thank you for this tutorial, you saved my homework. Great work!
I've got some problem, when I'm trying to set setOnClickListener to button and i'm typing "binding.", program doens't see my created Button. Even when I'm creating an object by val addToBase: Button = findByViewId(R.id.addToBase) it still doesnt work for me :(
Share code pics on ig
@@_foxandroid Ok, i found a solutions. I had issues because I'm working with many activities and I couldn't get reference to button from activity other than MainActivity. I had to change "private lateinit var binding: ActivityMainBinding" name to the name of my Activity which wasn't AcitvityMain. Thanks anyway!
@@_foxandroid hey man, may I send pics of my code? I've got some problem with saving data and I dont know why. Btw, link to your instagram isnt correct
@foxandroidblog
I have a question, It is not working for text fields with Google's material design. How to solve this?
DM code Pics on IG
my code is not running in firebase realtime
I have a question if i haven't any reference on my database for the path from previously will it create one reference for me or not work?
Yrs it will be created automatically
@@_foxandroid okk now i understand i have done all the linking and sdk but somehow for some reasons my rtdb is not working rhanks bro..m
@@_foxandroid Please give me the answer? If i have to use the Realtime Database then I am adding the realtime database library which is 'com.google.firebase:firebase-config-ktx' for this Have i also need to include the cloudstorage library? which is 'com.google.firebase:firebase-storage-ktx' ?
Thank you so much
i followed the process but i cant save nothing in the data base, when i tap on my button simply nothing appen
same here
In firebase you have username as a root for user data. How to make a root folder inside the username.
I mean, In my case,
Subjects >subject name :subject 1>( image url....)
Subject 2>(its properties)...
Add childs of child nodes
@@_foxandroid thanks bro.. 😄
please make video on open Activity from fragment by clicking button
Sure
❤️👍🏻
can i do this from a fragment not an activity
Yes
I have a problem when pressing the button the application closes.
Share code pics on IG
Same. Did you manage to solve this?
.clear() doesnt work
exact :/
merci!!!!!
How to stop empty entry to firebase?
You can do that at the client side..
create a validation function for all entries before pushing it to the RTdB