Room Database using Java | Android Tutorial

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

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

  • @hankyotutorials
    @hankyotutorials 2 месяца назад

    thank you so much, i followed your video from start to end and it works, you're awesome❤

  • @stephanroder1371
    @stephanroder1371 10 месяцев назад +3

    Hi, at 20:02 : "Since all database CRUD should occur in backgroud ..."
    - why should they run in background ? who is telling this ? is "PersonDAO" able to do this without developer specific instructions, isn't it ?🤔

    • @Developer_exc
      @Developer_exc  10 месяцев назад +2

      It can't opeate on main thread thats why. :)

    • @stephanroder1371
      @stephanroder1371 10 месяцев назад +3

      @@Developer_exc thanks for quick response. Here my own answers:
      why should they run in background ? who is telling this ?
      Room library under Android OS was developed not to run queries under UI thread. So it must be in background (or you use allowMainThreadQueries() - not preferred).
      is "PersonDAO" able to do this without developer specific instructions, isn't it ?
      No, this must be implemented into Room library. To run in backgroud try to use "ExecutorService".

  • @oleksandr3275
    @oleksandr3275 6 месяцев назад

    Thank you very much for your shared experience. It was realy useful 👍

  • @marshmallow2476
    @marshmallow2476 4 месяца назад +2

    Iam surprised developers write code but dont share it due to their personal thinking

    • @Developer_exc
      @Developer_exc  4 месяца назад +1

      github.com/rahulexc/RoomDBApp :D For you buddy!

    • @marshmallow2476
      @marshmallow2476 3 месяца назад

      @@Developer_exc thanks mate

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

    Bro... Which dependency do I add in gradle file?

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

    Thanks for the tutorial

  • @emirhansezgin4212
    @emirhansezgin4212 11 месяцев назад +1

    Thanks.

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

    💥

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

    thank you for the tutorial!

  • @cirofusco5972
    @cirofusco5972 6 месяцев назад +1

    Thanks it's work. compileSdk 33