ROOM Database #2 - ViewModel, Repository,LiveData (Android Tutorial)

preview_player
Показать описание
In this video i will show you how to create a simple room database in android development. This video will show you how to do Async jobs to insert data and how to observe data in the database.

Viewmodels,Database,Room,Observable,Livedata
Рекомендации по теме
Комментарии
Автор

Thank you very much for this video. Made it look so simple and easy!

zafrulalam
Автор

Was trying to find a video explaining how to store pre-made data in room db, Stumbled here, very nice quality, man! Subscribed.
If you make more Android dev contend - definitely watching it.

artursl
Автор

Can you make one for newer version using Java like this?

isurumw
Автор

its outdated i think, ViewModelProviders doesnt exist

waqaero
Автор

hi, thanks for the tutorials. they have helped me make progress on a new app im working on and I appreciate how short the videos are, saves me time (but I will have to learn the ins and outs later!)

One question, I'm trying to create a SQL query that uses today's date with:
@Query("SELECT * FROM data WHERE recorded_date=CURRENT_DATE")

However, when I call db.getTodaysData() in MainActivity, I get a 
"Can't get WAA status for Mavatar!
Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference"

My query works fine when I use it in an online sql editor, but not sure what's going on in Android (using Java). This is my first time using SQL 😅

Thanks in advance

VivekBhookya
visit shbcf.ru