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
  • НаукаНаука

Комментарии • 53

  • @pheroqt1238
    @pheroqt1238 2 года назад +5

    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.

  • @sinaa7562
    @sinaa7562 2 года назад +1

    You make really good videos! Thanks!! :)

  • @ovindumandith6989
    @ovindumandith6989 Год назад

    It will be really helpful if you make the full CRUD with otlin and firebase

  • @maso4u
    @maso4u 3 года назад +1

    Thank you for this tutorial. great work

  • @AliHassan-dx2wy
    @AliHassan-dx2wy 2 года назад +1

    That's really helpful for beginners, get succeed by watching this video after facing failures today about 7 to 8 times

    • @muhdfaisaladha5758
      @muhdfaisaladha5758 2 года назад

      Do you have any problem where the Realtime Firebase does not automatically create a reference node?

  • @paraspalli9850
    @paraspalli9850 3 года назад

    Bro make the Playlist of it...
    Waiting for remaining CRUD operations...

  • @user-ho8mq5qb2j
    @user-ho8mq5qb2j Год назад

    非常棒的教學!!! 很感謝你 :)

  • @atlariseverim
    @atlariseverim 2 года назад +5

    For those of you who get a Failure message, be sure to make your database rules true for read and write.

    • @wheza99
      @wheza99 Год назад

      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"

  • @toptenideas666
    @toptenideas666 Год назад

    what if user try to register username that already exists in database? error?

  • @franksonate
    @franksonate Месяц назад

    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

  • @adipramana02
    @adipramana02 2 года назад

    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.. 🙏

  • @o0tajmashido0o
    @o0tajmashido0o 2 года назад +2

    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

  • @sandipshrestha7637
    @sandipshrestha7637 Год назад

    your video helped me Man!

  • @tanyixuan3320
    @tanyixuan3320 Год назад

    Hi Sir may I know what is the gradle setting?

  • @kahyeetan5017
    @kahyeetan5017 2 года назад

    sir this is the register part, can you do a login part video?

  • @akshatha252
    @akshatha252 2 года назад

    can we do the same from a fragment? if yes how

  • @Rafaels1997
    @Rafaels1997 2 года назад +1

    thank you for this tutorial, you saved my homework. Great work!

  • @Macias096
    @Macias096 3 года назад +1

    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 :(

    • @_foxandroid
      @_foxandroid  3 года назад

      Share code pics on ig

    • @Macias096
      @Macias096 3 года назад +1

      @@_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!

    • @Macias096
      @Macias096 3 года назад +1

      @@_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

    • @_foxandroid
      @_foxandroid  3 года назад

      @foxandroidblog

  • @pratikchakraborty6999
    @pratikchakraborty6999 3 года назад +1

    I have a question, It is not working for text fields with Google's material design. How to solve this?

  • @khawaja.m.aumairali1477
    @khawaja.m.aumairali1477 5 месяцев назад

    my code is not running in firebase realtime

  • @sudiptakumarbiswas
    @sudiptakumarbiswas 3 года назад +2

    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?

    • @_foxandroid
      @_foxandroid  3 года назад

      Yrs it will be created automatically

    • @sudiptakumarbiswas
      @sudiptakumarbiswas 3 года назад +1

      @@_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

    • @sudiptakumarbiswas
      @sudiptakumarbiswas 3 года назад +1

      @@_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' ?

  • @hanifalfaqih
    @hanifalfaqih 3 года назад +1

    Thank you so much

  • @black_gamer0349
    @black_gamer0349 8 месяцев назад +1

    i followed the process but i cant save nothing in the data base, when i tap on my button simply nothing appen

  • @mountrat
    @mountrat 2 года назад +2

    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)...

    • @_foxandroid
      @_foxandroid  2 года назад +1

      Add childs of child nodes

    • @mountrat
      @mountrat 2 года назад +1

      @@_foxandroid thanks bro.. 😄

  • @ravindraghate2814
    @ravindraghate2814 3 года назад +1

    please make video on open Activity from fragment by clicking button

  • @ETNewVideo
    @ETNewVideo 3 года назад +1

    ❤️👍🏻

  • @dexsterstudent4676
    @dexsterstudent4676 2 года назад +1

    can i do this from a fragment not an activity

  • @Raikishadows
    @Raikishadows 2 года назад +1

    I have a problem when pressing the button the application closes.

  • @sobirovs1661
    @sobirovs1661 2 года назад +1

    .clear() doesnt work

  • @lyndalynda8257
    @lyndalynda8257 2 года назад

    merci!!!!!

  • @wizzzzzzz9135
    @wizzzzzzz9135 3 года назад +1

    How to stop empty entry to firebase?

    • @_foxandroid
      @_foxandroid  3 года назад +1

      You can do that at the client side..

    • @marcelkibor184
      @marcelkibor184 2 года назад +1

      create a validation function for all entries before pushing it to the RTdB