Save Data in Firebase Realtime Database using Kotlin | Realtime Database | Kotlin | Android Studio

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

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

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

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

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

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

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

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

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

      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"

  • @pheroqt1238
    @pheroqt1238 3 года назад +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.

  • @o0tajmashido0o
    @o0tajmashido0o 3 года назад +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

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

    You make really good videos! Thanks!! :)

  • @franksonate
    @franksonate 7 месяцев назад

    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

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

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

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

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

  • @mountrat
    @mountrat 3 года назад +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  3 года назад +1

      Add childs of child nodes

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

      @@_foxandroid thanks bro.. 😄

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

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

  • @black_gamer0349
    @black_gamer0349 Год назад +1

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

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

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

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

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

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

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

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

    Thank you for this tutorial. great work

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

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

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

    can i do this from a fragment not an activity

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

    my code is not running in firebase realtime

  • @本翔盧
    @本翔盧 Год назад

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

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

    please make video on open Activity from fragment by clicking button

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

    your video helped me Man!

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

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

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

    Hi Sir may I know what is the gradle setting?

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

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

  • @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 3 года назад +1

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

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

    .clear() doesnt work

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

    Thanks bro Thanks...

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

    Thank you so much

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

    ❤️👍🏻

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

    merci!!!!!