Room Database using Java | Android Tutorial
HTML-код
- Опубликовано: 24 фев 2023
- The Room persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
Watch the whole video with patience.
I recommend Android developers upgrade from SQLite to Android Room, to gain the benefits of an offline/online storage application. If you want to learn more , I suggest you visit the official Android developer site.
Thank you very much for your shared experience. It was realy useful 👍
thank you for the tutorial!
Thanks for the tutorial
Bro... Which dependency do I add in gradle file?
Thanks.
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 ?🤔
It can't opeate on main thread thats why. :)
@@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".
💥
Iam surprised developers write code but dont share it due to their personal thinking
github.com/rahulexc/RoomDBApp :D For you buddy!
Thanks it's work. compileSdk 33