Android Room Update Operation: Room Database Tutorial | Android Jetpack Tutorial #4.6

preview_player
Показать описание

Android architecture components tutorial. In this video, you will learn how to update data in Room database. You will see the demo application in detail with the entire set up starting from the entity, DAO, database, and activity.

.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)

Free Programming courses:

Free Flutter course:

Free Android courses:

More free programming courses:

Check out my website:

Let's get in touch! [Sriyank Siddhartha]

---- Thank you for your love and support ----
Рекомендации по теме
Комментарии
Автор

1. A single activity can be used for add and edit
2. It's not good practice to start another activity from adapter. A callback interface should be used to return edit and delete click events to activity
3. Why aren't you using activity context in toast?

BibaswannBandyopadhyay
Автор

I can not understand; two are created for the EditModel (ViewModel), Constructors, one that receives the context and the other does not receive anything, however when creating the view model in the activity, the one that does not receive a parameter is invoked, which does not initialize the database, but still later in the activity the result of the database is read; Magic.

normancashnic
Автор

can we use @Query @Query("UPDATE note SET itemdescription = :description WHERE id= :id")

benarjee
Автор

Thanks for tutorial and one more thing that your voice is very beautiful

androidwala
Автор

Sir...i am facing one issue ...Hope there is some trick to it...how can I know that where should i write small first letter as in (print) and where to use capital first letter as in (String, IntegerDivisionbyZero etc)

sauravgupta
Автор

Thanks dear for such great videos...can I know about the hardware and software used by you ? especially slide maker, mic and recoder and video editing software

sauravgupta