Firebase Data to RecyclerView using Kotlin | Retrieve Firebase data into RecyclerView | Kotlin |

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 117

  • @marc988
    @marc988 2 ปีที่แล้ว +9

    Here's a timeline of the video. I hope this will help:
    00:00 - Intro
    00:19 - Demonstration of the final app
    01:20 - Connecting the project to Firebase
    02:12 - RecyclerView activity (frontend)
    02:43 - Items for the RecyclerView (frontend)
    04:37 - Data classe / Model (backend)
    05:54 - Adapter (backend)
    11:08 - Getting the data from Firebase database & Setting the Adapter to the recyclerView (backend)
    13:11 - Fetch data from Firebase receive (backend)
    17:19 - Testing / The final app
    Thanks to @Foxandroid 👍

  • @marc988
    @marc988 2 ปีที่แล้ว +4

    Yes ! Yeeees ! The only approach that finally works for me after 3 months of hard researches and tests and disappointing mistakes !!! 😁I was trying to show firebase data in a RecyclerView of a TabbedView with a Drawer Navigation... But I never could ! Thanks Foxandroid !!!

  • @marekzet482
    @marekzet482 ปีที่แล้ว

    I wasted at least two weeks to find solution how to add existing SQLLite database to my project and finaly instead of SQL I added my databse from Firebase whis is much more easier and faster. Thank you for this video. Good job!

  • @stevekelly4347
    @stevekelly4347 3 ปีที่แล้ว +8

    Excellent series I really appreciate your tutorials keep up the good work

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      Thanks... means a lot ❤️

  • @saga1658
    @saga1658 3 ปีที่แล้ว +2

    The most awaited video... Thanks bhaiya

  • @MiquelGarrigo
    @MiquelGarrigo 3 ปีที่แล้ว +3

    Thank you for the post, but I have a question.
    In the case that it is in a fragment and not in an activity it does not work for me. Could you give me some tips?

  • @sundarshrestha7435
    @sundarshrestha7435 ปีที่แล้ว

    thank you so much bro it made me cry
    i tried so many times for days untill i watch this video

  • @SamarthSinha-ur3ci
    @SamarthSinha-ur3ci 3 ปีที่แล้ว +1

    u r too much underrated but you are unabated

  • @m_zeeshan.a
    @m_zeeshan.a 3 ปีที่แล้ว +3

    The Activity opens up blank where the data is supposed to be retrieved and then goes back to MainActivity or the app crashes. When I check the logcat it says "No Adapter Attached, Skipping Layout".

  • @عبدالرحمنخالد-ش4ت6ي
    @عبدالرحمنخالد-ش4ت6ي ปีที่แล้ว

    man I love you and love your channel , thank you very much

  • @ronanirvine9910
    @ronanirvine9910 3 ปีที่แล้ว +1

    For the main activity, did you do anything to it? or use it to call the other activites?

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Yes put a button in Mainactivity to go to this activity or make this activity as launcher activity

  • @joyfullself6591
    @joyfullself6591 2 ปีที่แล้ว +1

    Excellent work! Thank you for this

  • @professorademilson
    @professorademilson ปีที่แล้ว

    Parabéns meu amigo. Mesmo entendendo pouco de sua lingua eu consegui fazer tudo e funcionou direitinho. Obrigado pela ajuda. Ganhou um inscrito e um joinha.

  • @innovationh-e8f
    @innovationh-e8f ปีที่แล้ว

    I just did everything what you showed
    but showing this error message
    E/RecyclerView: No adapter attached; skipping layout
    and my app going back to main activity

  • @emeissing184
    @emeissing184 2 ปีที่แล้ว

    Hey I am having an issue where the data is not read too my recycle view am doing everything you are doing but I cant get the data to pass

  • @mavinsandeep6385
    @mavinsandeep6385 2 ปีที่แล้ว

    I have one question when I add data to the database will the UI get updated?

  • @yongsinwong5175
    @yongsinwong5175 3 ปีที่แล้ว +2

    Can i know why i get blank?

  • @Matex__
    @Matex__ 2 ปีที่แล้ว

    How to do this but inside fragment not activity? I have problems with that and can't find answers, code should be written differenty inside fragment .kt file and i can't figure it out. And I also tried to run this code from github but it's not working, a lot of errors show up.

  • @youlu9935
    @youlu9935 2 ปีที่แล้ว +1

    Thank you so much!! really really helpful!

  • @makarov.d
    @makarov.d 3 ปีที่แล้ว

    Hello, dear friend, why is my project not working, exactly something is wrong when getting the database, can you help ?

  • @-_-RealIy
    @-_-RealIy 3 ปีที่แล้ว +1

    i followed this 4 times. but everytime i faild. when i click the "recyclerviewbtn", app sudenly shut down

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Please share code pics on IG

  • @suhanshahriyar1378
    @suhanshahriyar1378 3 ปีที่แล้ว +1

    i am facing a problem.. when i eun my app it just show a blank and black page. Please Help Me.

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      For some time or continuous blank page??

    • @rahilvig8185
      @rahilvig8185 3 ปีที่แล้ว +3

      @@_foxandroid Hi I am getting a continuous blank screen! Any help would be appreciated! I get an error saying: “No adapter attached; skipping layout”

  • @billaajith67
    @billaajith67 ปีที่แล้ว

    everytime i put all the thing but it goes wrong please tell me what was the problem

  • @golem7060
    @golem7060 3 ปีที่แล้ว +1

    I had an Error in line:
    var dataItem = itemSnapshot.getValue(item::class.java)
    itemArrayList.add(dataItem!!)
    Failed to convert value of type java.lang.Long to String
    Here is my solution:
    var age = userSnapshot.child("age").value.toString()
    userArrayList.add(User(age))

  • @eddychow6521
    @eddychow6521 3 ปีที่แล้ว

    Hi Can you do a demo using Android studio 4.2.2 for firebase and RecyclerView? Thanks

  • @jonparker8832
    @jonparker8832 3 ปีที่แล้ว

    How can I reverse the order of the data that is display in the mobile? I want to show robert first to steve who will be in last place

  • @ognjendupljanin5414
    @ognjendupljanin5414 2 ปีที่แล้ว

    I have problem in MyAdapter holder.name.text and error is that text is unresolved reference

  • @AmanKumar-pd8kp
    @AmanKumar-pd8kp 3 ปีที่แล้ว +1

    how you wrote on click function , please provde the code

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      DM on IG or check our discord server

  • @jovianswank300
    @jovianswank300 3 ปีที่แล้ว +1

    how u can implement livedata with it ??

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      You have to implement some architecture like MVVM, MVP, etc

  • @samuelhernandez4670
    @samuelhernandez4670 2 ปีที่แล้ว

    Muchas gracias colega, me fue de gran ayuda!

  • @nrmasterz9869
    @nrmasterz9869 3 ปีที่แล้ว

    Thank you sir!! for the tutorial, is it possible to make viewpager on this?

  • @ammadsarwarcheema5307
    @ammadsarwarcheema5307 2 ปีที่แล้ว

    Excellent work and I learned alot from you I want to ask if you can help me with something I want to know how the user can delete his event data but i want that data to be safe in farebase data base please tell me...

  • @dowonlee7301
    @dowonlee7301 3 ปีที่แล้ว

    13:30 What if user is a some of children then how we call it(ex mainServer - user - etc.. like that). I just put .child() function at the end like getReference().child("mainServer").child("user") but it crashes need a help

  • @satoshixl2296
    @satoshixl2296 3 ปีที่แล้ว +1

    How to do this but with firestore?

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Will make video on that soon!!!

  • @4languages226
    @4languages226 3 ปีที่แล้ว +1

    thanks for the great tutorial and source code

  • @rinorobot
    @rinorobot 2 ปีที่แล้ว +1

    Your video save my life

  • @gowthamvaradharaj4615
    @gowthamvaradharaj4615 3 ปีที่แล้ว +1

    sir on request please make video for live data change that also change on recycler view show live

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      Sure Gowtham...stay connected

    • @gowthamvaradharaj4615
      @gowthamvaradharaj4615 3 ปีที่แล้ว +1

      @@_foxandroid thank you so much sir
      Actually now only I’m learning to develop android apps your video very helpful for me 🥰

  • @assadkhan3297
    @assadkhan3297 3 ปีที่แล้ว

    thank you very much for such a nice tutorial

  • @educationofmaharashtra
    @educationofmaharashtra 2 ปีที่แล้ว

    make a app RecyclerView with image+heading+discription Item Click open differnt 5 activities, for example:- click 1 st item open Activity 1, click 2 nd item open Activity 2 , click 3 rd item open Activity 3 , click 4 th item open Activity 4, click 5 th item open Activity 5. {make this app your subscriber boost 100000000 times}

  • @lucasmartinss5539
    @lucasmartinss5539 3 ปีที่แล้ว +1

    is it possible to make each item clickable?

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      Yes!!

    • @lucasmartinss5539
      @lucasmartinss5539 3 ปีที่แล้ว +1

      @@_foxandroid I tried doing cardview, lienear, I still tried to create a button but whenever I do .setOnClickListener, da nullpoint (java.lang.RuntimeException: Unable to start activity ComponentInfo{com.feb.group/com.feb.group.ListaContatos}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference)
      can you help me?

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      th-cam.com/video/dB9JOsVx-yY/w-d-xo.html
      This video might help please check it out

    • @lucasmartinss5539
      @lucasmartinss5539 3 ปีที่แล้ว +1

      @@_foxandroid very good guy, still interpreting how it works, because I don't understand english, but I wanted to know that as a video you already have a call from each position, because I put set click to go to another activity so how do you leave this activity with data for guy position?
      if you can’t understand very well don’t blame translater kkk

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Do you mean to send data to the next Activity??

  • @adrianvillanueva9703
    @adrianvillanueva9703 3 ปีที่แล้ว +2

    I have a blank page

    • @adrianvillanueva9703
      @adrianvillanueva9703 3 ปีที่แล้ว +1

      java.lang.ClassCastException: androidx.appcompat.widget.AppCompatImageView cannot be cast to android.widget.TextView

  • @full2programming424
    @full2programming424 ปีที่แล้ว

    my key has space in it how can i name the data class variable

    • @_foxandroid
      @_foxandroid  ปีที่แล้ว +1

      Space is not recommended please user underscore instead

  • @reimuhkrei
    @reimuhkrei 2 ปีที่แล้ว

    👍👍👍👍 great tutorial

  • @armangukasian
    @armangukasian 2 ปีที่แล้ว

    thak you! very helpful video

  • @pallavimaralla9157
    @pallavimaralla9157 3 ปีที่แล้ว +2

    The app is crashing sir

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Please check the logs and find the reason for the crash!

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Please share the log pics on Instagram

  • @sh123-w6q
    @sh123-w6q ปีที่แล้ว

    thank you for your tutorial !

  • @shakhawathossain3207
    @shakhawathossain3207 3 ปีที่แล้ว +1

    thanks bro for this amazing video

  • @rahilvig8185
    @rahilvig8185 3 ปีที่แล้ว +2

    Hi I am getting a continuous blank screen! Any help would be appreciated! I get an error saying: “E/Recyclerview: No adapter attached; skipping layout” and it seems that the valueEventListener is not firing

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      There must be some mistake in the code!! Please rewatch and try to find the mistake

    • @rahilvig8185
      @rahilvig8185 3 ปีที่แล้ว +1

      @@_foxandroid Hi I have followed your tutorial perfectly but it in getUserData, it doesn't run past Firebase.getInstance line. After doing that it doesn't do addValueEventListener. Could it be due to me not having an import? Or something else?

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Please share the issue on Instagram

    • @rahilvig8185
      @rahilvig8185 3 ปีที่แล้ว

      @@_foxandroid sure

    • @rahilvig8185
      @rahilvig8185 3 ปีที่แล้ว

      @@_foxandroid I have sent you on instagram foxandroidblog

  • @marypaul9627
    @marypaul9627 2 ปีที่แล้ว

    thanks alot,subscribed!

  • @glykeriakirou1216
    @glykeriakirou1216 2 ปีที่แล้ว

    It's perfect!! How can I clicked and go to other activities??

  • @srujanv6433
    @srujanv6433 3 ปีที่แล้ว +1

    Please make this app tutorial with mvvm architecture

  • @taknikiniga
    @taknikiniga 3 ปีที่แล้ว +1

    please make same video for nested recycler view

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      Sure bro!!

    • @taknikiniga
      @taknikiniga 3 ปีที่แล้ว +1

      @@_foxandroid also can you please make these firebase database video using firestore ... facing some issue in last can you reply me on instagram

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว

      Yeah sure man....but i guess i haven't got any text on Instagram

  • @gowthamvaradharaj4615
    @gowthamvaradharaj4615 3 ปีที่แล้ว +1

    thank you so much sir......

  • @anandapadmanathan9905
    @anandapadmanathan9905 3 ปีที่แล้ว +1

    Really Good !! You do it !!

  • @4_adeadamnisasabrina514
    @4_adeadamnisasabrina514 2 ปีที่แล้ว

    cool, but how if we wanna retrieve image, does anyone know :(

  • @waleefalrooh8
    @waleefalrooh8 3 ปีที่แล้ว

    You are my saviour thankkk youu

  • @benpg3206
    @benpg3206 2 ปีที่แล้ว

    very good video helped me a lot

    • @VivekTiwari-bo3xz
      @VivekTiwari-bo3xz 2 ปีที่แล้ว

      this is not working showing E/Recycler View Adapter is not attached

  • @AdishaFdo
    @AdishaFdo 2 ปีที่แล้ว

    Thank you Sir

  • @mdideas4457
    @mdideas4457 2 ปีที่แล้ว +1

    Thank you so much

  • @juliakutianska9488
    @juliakutianska9488 3 ปีที่แล้ว +1

    Thank you so much!!

  • @huybuiquoc3083
    @huybuiquoc3083 3 ปีที่แล้ว +1

    You are my god!!, thanks to save me

  • @byverbel4057
    @byverbel4057 3 ปีที่แล้ว +1

    Good video

  • @lollikop
    @lollikop 3 ปีที่แล้ว

    Great Tutorial!
    But when i add a second element after just adding the first one..i have a bugged recyclerview. it shows me the first element two times and then the second element. and it gets really buggy when i add an third element...can you pls help?

  • @MohamedAshraf1993
    @MohamedAshraf1993 2 ปีที่แล้ว

    Many Thanks

  • @SamarthSinha-ur3ci
    @SamarthSinha-ur3ci 3 ปีที่แล้ว +2

    JUST AMAZING

    • @_foxandroid
      @_foxandroid  3 ปีที่แล้ว +1

      Thanks man.... means a lot❤️

  • @saga1658
    @saga1658 3 ปีที่แล้ว +1

    Again Thanks

  • @anurajms
    @anurajms 3 ปีที่แล้ว +1

    thank you

  • @educationofmaharashtra
    @educationofmaharashtra 2 ปีที่แล้ว

    make a app RecyclerView with image+heading+discription Item Click open differnt 5 activities, for example:- click 1 st item open Activity 1, click 2 nd item open Activity 2 , click 3 rd item open Activity 3 , click 4 th item open Activity 4, click 5 th item open Activity 5. {make this app your subscriber boost 100000000 times}

  • @educationofmaharashtra
    @educationofmaharashtra 2 ปีที่แล้ว

    make a app RecyclerView with image+heading+discription Item Click open differnt 5 activities, for example:- click 1 st item open Activity 1, click 2 nd item open Activity 2 , click 3 rd item open Activity 3 , click 4 th item open Activity 4, click 5 th item open Activity 5. {make this app your subscriber boost 100000000 times}