Android Firebase Delete Update Data in RecyclerView | CRUD Android in 2021 #3

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

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

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

    your tutorials are very helpfull ty brother!

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

    9:42 The problem is that arraylist indexes don't refresh and instead of only removing Miller you also delete view with Sey. Is there any of aproaches to fix it?

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

    hey for the update when i update in the existing data it creates a new data instead of update in the existing data ...can you please help?

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

      We are both on the same boat. Greetings fellow Sri Lankan

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

      Please tell me how you fixed it if you found a solution

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

      @@tequilatyrant3992 hey set the position..just compare your code with their

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

    bro use better names for variables, this way is difficult to understand what they are

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

    Hey. I cloned the repo and replaced with my google service credentials. Everything works besides the Edit function. When I change the value, the list of items is not refreshed with new values. I need to reopen the list again to see the edited values. Delete refreshes the list correctly. Could you please help? I am running on Android 11 - Samsung phone.Thanks

  • @Asma-od1vf
    @Asma-od1vf 2 ปีที่แล้ว +1

    how can i update the image please

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

    guys if the put extra emp didnt work try make the employee class implement serializable

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

    Hey. Can you help me? I do everything along with your video but I have an error anyway.
    In the switch/ R.id.menu_edit I have a red underline here: intent.putExtra("EDIT", emp);
    I used an android studio hint so I did this: intent.putExtra("EDIT", (Serializable) emp);
    But it doesn't work. When I start the app and try the edit function I get an error: cannot be cast to java.io.Serializable
    Do you have any advice?

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

      Not cast to Serialize, it is interface. The class have to implement from Serializable

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

      @@CamboTutorial Thank you for your quick answer. :)
      I wouldn't cast that, but without it I also have an error underline it says "It cannot resolve method putExtra(java.lang.String, com.example.fbtest.Employee)" :l.
      But I've just found the solution below. I had to implement Serializable for my Employee class.
      Thank you. :D

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

      @@Qu3sti0nX bro, how did you do that. Im facing the same problem. Pls help

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

      @@tharvinmohgan9682 Hey, if I'm correct you haven't implemented the Serializable interface. 🙂

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

      @@Qu3sti0nX hey, ya I guess so. When I use (serializable) emp, it managed to compile but the function is still not working. I don't understand what do you mean by 'I had to implement Serializable for my Employee class.' do you want to look at my full coding. Please do help me 😖 My code is exactly the same as the one in the video

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

    Hi I need source code