Android ROOM Database | ViewModel, LiveData, RecyclerView Tutorial using Kotlin
HTML-код
- Опубликовано: 12 авг 2020
- Other videos Links:
• Android First App | Ba...
GitHub Code link:
github.com/ravizworldz/RoomDb...
How to install android studio
• How to install Android...
Android ROOM DB Migration
• Android Room DB Migrat...
Android ROOM Database Integration
• Android ROOM Database ...
Full Course MVVM, Retrofit2, RecyclerView, GLIDE
• FULL COURSE ANDROID -...
Android MVVM(Model-View-View-Model) , Live Data
• Android Model View Vie...
Android Retrofit2, Glide, JSO, Github Api, Recyclerview
• Android Retrofit2 and ...
Android RecyclerView Kotlin
• Android RecyclerView |...
Inline error messages and how to pass data from one activity to another activity in Kotlin
• Android Login Screen w...
Android basic login screen
• Android First App | Ba...
Interview Question
• Android Interview Ques...
• Android Interview Ques...
• Android Interview Ques...
#room #mvvm #viewmodel #livedata #observers #recyclerview #retrofit #retrofit2 #glide #gson #network #api #github #githubapi #recyclerview #customrecyclerview #recyclerviewadapter #adapter #androidinterview #android #howto #androidlearning #kotlin #basicskotlin #inline error #passdata #activity #corona #tutorial #example #login #learn #androidstudio #basicandroid #databse #kotlin android #mvvm android #retrofit2 android #room android #kotlin tutorial
Thank you very much, your video helped me a lot!
You could talk a bit louder and clearer but the code quality is excellent and easy to understand.
Thanks for your feedback!
You are my favorite youtuber, thank youuuu so much
thank you!
You saved my life bro I have tried for 4 days and I found it thanks...
Glad I could help, Thanks for your feedback!
very helpful..thnks:)
Thanks for your feedback!
thankyou its still working
Thanks!
Very helpful video
Thanks for your valuable feedback !
Very helpful
Glad to hear that, Thank you !
Thanks
Very Good
Thank you for your feedback!
thanks from japan.
your movie is very useful to me
thank you very much
my english is very poor,sorry
Great to hear that, Thank you so much for your feedback!
Very Helpful
Glad it helped
Hello, thanks for the content. There is something I want to ask, I keep the name and date information with Room in the project I am working on, at the same time I want to keep a name and ArrayList in a different part of the program. To do this, should I add all the classes and the new interface to the project again, using the database I created. how can i keep them
I have already a video available which is exact match of your requirement. take a look, here is the link. let me know if you still have any question.
ruclips.net/video/a_zcPmwRc_A/видео.html
Hello!! how to update data using another activity?
Can you help me out...!
You can call same @update function of Dao from view model of your activity. Thanks!
i have on error will anyone help me ?
error in mainactivity.kt viewModel = ViewModelProviders.of(this)
ViewModelProviders is in red line and cant solve problem error is Unresolved reference: tvName
I think your import is not proper. take a look to my code and match it with yours.
github.com/ravizworldz
Amazing tutorial...Thank you! But your keyboard's sound is louder than your voice.
Thanks for your feedback, thats improved in the latest videos, Hope that help!
brother how to store images in Room database plz help try from last one week
There are many ways to store image but below 3 are commonly used.
1. You can store image URL in room db and then use that URL with Gllide to display image.
2. You can try to store image byte array in db then convert it back to bitmap to display.
3. Store image in the internal memory and display it from there.
hi, your code is easy to understand .. but after watching and practicing then matching it with your github code, everything becomes a lot of trouble
sorry to hear that, you can download github code and just run it and see if it work. I assume there is something wrong with AS gradle.
@@LearningWorldz I mean there is a difference in the code on Github and the video from RUclips
Hi, perfect, one question. Can be this recyclerview drag&dropable? thank you
Yes, absolutely you can implement drag and drop on recyclerview.
Well, maybe I'll need a little help. In Main activity I created lateinit var allUsers: Arraylist... in OnCreate I initiated it with allUsers = recyclerViewAdapter.items... finally passed allUsers to Collections.swap(allUsers... The app keeps crashing with IndexOutOfBoundsException in line with Collections. I hope I'm doing something wrong. If you can help, please
Great vid! Is there a way to do this in a fragment rather than an activity?
Yes, you can do the same in fragment instead of activity, simply register the viewmodel in fragment and then call viewmodel functions from fragment, Hope that help!
adding kapt dependency crashes my project, says Execution failed for task ':app:kaptDebugKotlin'
Add below line at the top of your build.gradle file inside plugin block.
apply plugin: 'kotlin-kapt'
Below lines inside your dependencies block:
kapt 'androidx.room:room-compiler:2.4.0-alpha02'
implementation 'androidx.room:room-runtime:2.4.0-alpha02'
@@LearningWorldz Now I get another error though..
"error: getRequiredAutoMigrationSpecs() in RoomDb_Impl cannot override getRequiredAutoMigrationSpecs() in RoomDatabase
protected Set
you just need to uninstall and reinstall the app. that will resolve this issue.
I can hear keys clacking, but I only hear mumbling... :(
Thanks for your feedback, will take care in future videos!
Hello is this MVVM structure ? Thanks
Yes, correct
Great tutorial. But I can't see a repository class 🙄🤷♂️. Is that optional?
Repository should be created for re-usability purpose. Thanks!
@@LearningWorldz Thanks for the swift reply :) . So I can skip that one for simple projects?
yes you can..Thanks!
Hi, when I run it, it says "RoomDemo has stopped."
Check the logcat and see what error you are getting?
also try to uninstall and reinstall might work.
@@LearningWorldz, thanks a lot bro. Mine has worked. Your tutorial has saved my Master's project.
What about the fast forwarding 🙄🤔
Thanks for your feedback!
Hi, I follow all your steps and watch your video 2 times, but still can't get data in a recycler view. Plzzz help me and guide me that how can I get data in a recycler view...I'll be thankful to u
please let me know if you are getting any error ? check the logcat for errors. or you can print logs in the logcat when making a call to Query function. you can send me the code snnipet here so that I can take a look, please share the viewmodel code.
@@LearningWorldz App is installed successfully,but I don't know that data is inserted or not,Because I cant't get data in a recyclerview. I used logcat after calling to Query function, but there is no data or any error in my code, Tell me how can I send you ViewModel code??
you can paste code here..
share the viewmodel code and activity code when you are calling insert and query function.
@@LearningWorldz I resolved my problem, Thank u so much for cooperating and giving me a time
Awesome!
The voice is not good use a better mic or other solutions to get a better voice .
Thanks for the feedback!
I really enjoyed your loud voice in your tutorial, Muhammed Afsal...