Super clear, I think the problem that I could of had was watching this before learning about the List Class and basic design patterns like the Singleton. I am so glad I studied before watching this, this was good man keep it up! I will say though that you will probably often get people without any experience complaining, with that said I am sorry you have to deal wit that! I Will say that I was a bit thrown off by the new technologies used outside of vanilla Java, like the database annotations; obviously because this is the first time I have ever used any dependencies outside of code I have made myself.
Thanks, man. You're very skilled. It was easy to follow you. Thanks! But still problems with migrating to the non-deprecated Activity Results API. I tried to follow your advice to Gaurav Samar but, after finishing saving a user, it will not show the updated list... It only shows it if I restart the app
thanks so much for the tutorial, i can't seem to understand databases properly enough to integrate it into my app. So i can't store buttons in a databse right? this is so tough.
can you implement a ViewModel and LiveData in this code please? I've been struggling a lot with them and cant understand how they work nor implement them.. Thanks for the video!
cant get room to fucking work with a single table, there's always some weird ass fucking problem. by the time i've got it to stop trying to insert null into an int field, i might have made 10 databases that work in SQLite or whatever
Because RoomDatabase has defined methods, the inheriting class cannot be an interface. And because you write your undefined method in that abstract class, it cannot be a class. Also, Room will map our database objects to Java objects. Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. public abstract UserDao userDao(); // abstract method is not allowed for non abstract class
@SensibleGuy check your dependencies If your using kotlin, change annotationProcessor to kapt Further if you get any error like kapt not found, at the top of your app level gradle add plugin { id 'kotlin-kapt' }
@@ЕгорПоляков-т5ъ Could you check the gradle file and see if you have all the dependency on place, have you tried below If your using kotlin, change annotationProcessor to kapt Further if you get any error like kapt not found, at the top of your app level gradle add plugin { id 'kotlin-kapt' }
for the little improvement first tell your students what you gonna build and then try to clear things one by one what is the process of thinking then make .......my question is USER... user in insert query part what to mean...
Thanks for your feedback, Its always been mention at the starting of video as well as in the description of video. Please explain your question more clearly?
Declare 'someActivityResultLauncher in your activity and then call 'openSomeActivityForResult' function when you want to launch an activity. ActivityResultLauncher someActivityResultLauncher = registerForActivityResult( new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() { @Override public void onActivityResult(ActivityResult result) { if (result.getResultCode() == Activity.RESULT_OK) { Intent data = result.getData(); } } }); public void openSomeActivityForResult() { Intent intent = new Intent(CurrentActivity.this, SomeActivity.class); someActivityResultLauncher.launch(intent); } Hope this help!
for insert in room you don't need to write query, you can simply pass the Entity object it will automatically insert in the table. thats the beauty of room.
use this assuming your view model name is 'MainActivityViewModel' MainActivityViewModel viewmodel = new ViewModelProvider(this).get(MainActivityViewModel.classs); viewmodel.anyFunctionInViewModelClass(); Hope this help!. Thanks!
thanks so much for the tutorial, i can't seem to understand databases properly enough to integrate it into my app. So i can't store buttons in a databse right? this is so tough.
i have trouble in set up Room Database since yesterday. and now you save me life
Thank you for your feedback!
Super clear, I think the problem that I could of had was watching this before learning about the List Class and basic design patterns like the
Singleton. I am so glad I studied before watching this, this was good man keep it up! I will say though that you will probably often get people without any experience complaining, with that said I am sorry you have to deal wit that!
I Will say that I was a bit thrown off by the new technologies used outside of vanilla Java, like the database annotations; obviously because this is the first time I have ever used any dependencies outside of code I have made myself.
I am glad that you like it, thanks for your feedback!
Спасибо, отличный туториал !)
Thanks, great tutorial !)
Thank you for your feedback!
TQ. this tutorial is straight to the point.
Thanks for your feedback !
Great tutorial
Thank you! Cheers!
Super Duper Thanks Bro
Thanks !
Thanks, man. You're very skilled. It was easy to follow you. Thanks! But still problems with migrating to the non-deprecated Activity Results API. I tried to follow your advice to Gaurav Samar but, after finishing saving a user, it will not show the updated list... It only shows it if I restart the app
Figured it out, thanks again!
You are so amazing man, much thanks for you work
Thank you for your feedback, Please subscribe for more videos.
Thank you so much. Very simple and good tutorial!
Thank you for your feedback ! Please subscribe!
This Worked :-)
Awesome !
thanks so much for the tutorial, i can't seem to understand databases properly enough to integrate it into my app. So i can't store buttons in a databse right? this is so tough.
thats correct you cannot store any view in the db, you can just store the primitive type of data types. Thanks!
bhai view store krke kya karega koi logic nhi bana lol
Well explained..... Thanks :)
Thanks for your feedback, Please subscribe!
Thank you!
You're welcome!
can you implement a ViewModel and LiveData in this code please? I've been struggling a lot with them and cant understand how they work nor implement them..
Thanks for the video!
Thank you for your feedback, I have similar video in kotlin, explore the kotlin playlist to find the video, Thanks!
did you find the solution ????
cant get room to fucking work with a single table, there's always some weird ass fucking problem. by the time i've got it to stop trying to insert null into an int field, i might have made 10 databases that work in SQLite or whatever
I cant make object of AppDatabase (17:50). AppDatabase is abstract class. Abstract class can't have object in Java.
Because RoomDatabase has defined methods, the inheriting class cannot be an interface. And because you write your undefined method in that abstract class, it cannot be a class.
Also, Room will map our database objects to Java objects. Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
public abstract UserDao userDao(); // abstract method is not allowed for non abstract class
How to sync these recylerview data into MySQL databaseserver online
You can make api call and send that data to your server.
@@LearningWorldz Im able to send it to server but I want synchronisation feature which work offline and online
@@LearningWorldz just like he did: www.simplifiedcoding.net/android-sync-sqlite-database-with-server/
Pls help me if you can
db class package understanding (full DB class)
Please do without "allowMainThreadQueries".
thanks for your feedback !
well, there is some issue currently,
AppDatabase_Impl does not exist
dunno whats wrong here, can you help with this
try clean and rebuild, hope that help! where exactly you are getting error?
@SensibleGuy check your dependencies
If your using kotlin, change annotationProcessor to kapt
Further if you get any error like kapt not found, at the top of your app level gradle add
plugin {
id 'kotlin-kapt'
}
@@LearningWorldz i get the same error. It doesn't work even after clean and rebuild(
@@ЕгорПоляков-т5ъ Could you check the gradle file and see if you have all the dependency on place, have you tried below
If your using kotlin, change annotationProcessor to kapt
Further if you get any error like kapt not found, at the top of your app level gradle add
plugin {
id 'kotlin-kapt'
}
@@LearningWorldz thank for answer but my dependencies is in order and i don't use kotlin(
for the little improvement first tell your students what you gonna build and then try to clear things one by one what is the process of thinking then make .......my question is USER... user in insert query part what to mean...
Thanks for your feedback, Its always been mention at the starting of video as well as in the description of video. Please explain your question more clearly?
startActivityForResult is deprecated now! What should i do??
Declare 'someActivityResultLauncher in your activity and then call 'openSomeActivityForResult' function when you want to launch an activity.
ActivityResultLauncher someActivityResultLauncher = registerForActivityResult(
new ActivityResultContracts.StartActivityForResult(),
new ActivityResultCallback() {
@Override
public void onActivityResult(ActivityResult result) {
if (result.getResultCode() == Activity.RESULT_OK) {
Intent data = result.getData();
}
}
});
public void openSomeActivityForResult() {
Intent intent = new Intent(CurrentActivity.this, SomeActivity.class);
someActivityResultLauncher.launch(intent);
}
Hope this help!
@@LearningWorldz Thnx man
how can we add pagination in the same application
check this video, Hope this help, Thanks!
ruclips.net/video/OeYlsoPQO2c/видео.html
ruclips.net/video/Zb7SLUUbwQc/видео.html
sir eak cheec smaj ni ayi @Insert ki querry me User ke bad ... kyu use keya he ?
for insert in room you don't need to write query, you can simply pass the Entity object it will automatically insert in the table. thats the beauty of room.
@@LearningWorldz thanks sir
how we can solve ViewModulProvider ?
use this assuming your view model name is 'MainActivityViewModel'
MainActivityViewModel viewmodel = new ViewModelProvider(this).get(MainActivityViewModel.classs);
viewmodel.anyFunctionInViewModelClass();
Hope this help!. Thanks!
@@LearningWorldz still shows an err
its not the recomended way....should uv used mvvm model
Thanks for your feedback, I have other videos based on MVVM so this video just to learn Room in java..thanks!
@@LearningWorldz ok man ...happy growing💪
Super slow. Didn't run the code once in the middle of the video. No explanation during coding.
Sorry to hear that, will try to improve in future videos! Thanks for your feedback!
thanks so much for the tutorial, i can't seem to understand databases properly enough to integrate it into my app. So i can't store buttons in a databse right? this is so tough.
yes you cannot store buttons in the db, you can store primitive type of data. hope this help!
@@LearningWorldz thank you so much yeah that helps a lot. So only Strings and Ints i guess etc. Maybe arrays too.
correct!
I guess you are new to programming, u need to explore more, why would someone store button in a db ?