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 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".
thank you so much, i followed your video from start to end and it works, you're awesome❤
my pleasure :)
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".
Thank you very much for your shared experience. It was realy useful 👍
Iam surprised developers write code but dont share it due to their personal thinking
github.com/rahulexc/RoomDBApp :D For you buddy!
@@Developer_exc thanks mate
Bro... Which dependency do I add in gradle file?
Thanks for the tutorial
Thanks.
💥
thank you for the tutorial!
Thanks it's work. compileSdk 33