Bht se resources available hai android development ko le k in the form of videos, articles post etc. But the way you explain is just amazing ek bar me hi smjh aa jata hai and i am sure all 40.5K subscribers will be agree with me You are awesome Thank you so much. and my humble request is that can you please videos on Dagger hilt
Nice explanation. Just one confusion, as mentioned by you in kotlin tutorial , object is used to create a synchronised singleton instance, then why are we again using the java way to create singleton inside the companion object ? I mean is it not defeating the whole purpose of it?
It all depends how you access the object. If you access the object in the application class, you can define simple object declaration that will work. But we are accessing it with in activity - it is better to have thread safe singleton.
@@CheezyCode Sorry bhai but samjh nhi aaya..firstly ki object b toh thread safe hota h na? secondly activiy me aisi kya problem h jis wjah se simple object decalaration will not work...but will work in application? pls agar aap thoda detail m smjha sko because i want to clear my concepts
Great video.. keep it up. After finishing this series pl. make a series on Firebase Push Notification ( especially when app is no longer in background). I found many videos on that but they only showed either foreground or background scenarios.. no video found based on how to get Notification when app is no longer running in background which is realtime case ..
Database me agar 2 column me long value ho to kya dono long value to time me convert karega? Agr nahi to fir usko kese pata chalega k konsi long column ke liye ye converter use krna hai?
Sir, this code this work only one time when i again run the program the app is crashing please help i cannot find out the problem i done all the things correctly .
Bro in this 6:41 typeconvertor we convert Data to Long for inserting for Fetching Long to Data is used when i will use in my real application the data will show as like this Wed jul 29 19:24:54 GMT + 05:30 2023 simply i want to format the data how to do that bro how to format like DD/MM/YY only
Primitive types don't need conversion Whenever it encounters types other than primitives - it looks for type converters. If type converters are present, it uses these functions to convert values, otherwise will throw an error.
@@CheezyCode means It will look for a function that takes data type that needs to be converted, if it is present then it will use that function right ?
7:34 ; at this point , I think stupids like me will definitely select @TypeConverters in place of @TypeConverter as it was suggested first , which is going to throw a compile time error !
@@CheezyCode uske kaise pata kon sa call karna hai matlab agar m usme ek or fun rakhu FromlongtoString(value :Long) : string{ return str(value) } To kya hoga?
Bro data type check hota hai.... function jisme date type ka input ho, wo use hoga... Fir jab wapsi long jisme input hoga wo use hoga..room check karta hai data type dekh ke
Acha aise samajh skte ho - Room ne dekha entity ke andar date hai...usne kaha date store nahi kar skta - convertors pe pahocha usne dekha - koi aisa function jo input mei date le rha ho...usse mila ek function jo date ko long mei convert kar rha tha.... Ab access kar rha hu database se - value mili long usne kaha long ke liye koi aisa method hai jo date mei convert kar rha ho - usse mil gya - usko use kar liya usne
सर आपके बताने का तरीका बहुत अच्छा हैं।🙏
अच्छे से चीजे समझ आती है। Thanku Sir
Thank you 🤘
Nice job sir 👍 Your tutorial is very helpful.
Love you ❤️❤️ so much ❣️ sir
Love from Indore Madhya Pradesh.
this playlist helps me a lot. kindly cover all other jetpack topics as soon as possible especially MVVM. thanks for such content.
Thank you 🤘 and mvvm for sure
@@CheezyCode waiting
Bht se resources available hai android development ko le k in the form of videos, articles post etc.
But the way you explain is just amazing ek bar me hi smjh aa jata hai and i am sure all 40.5K subscribers will be agree with me You are awesome
Thank you so much.
and my humble request is that can you please videos on Dagger hilt
Thanks Saurabh....Dependency Injection and Coroutines will be next....stay tuned
Sir , why companion object... we can directly achieve singleton using just object
BLESSED TO FIND YOU.. I SPREAD THESE VIDEOS & THIS BRAND / CHANNEL A LOTTT
Thank you 🤘...aapka din shubh ho 😁
@@CheezyCode aapka bhi 🙏✨
Nice explanation. Just one confusion, as mentioned by you in kotlin tutorial , object is used to create a synchronised singleton instance, then why are we again using the java way to create singleton inside the companion object ? I mean is it not defeating the whole purpose of it?
It all depends how you access the object. If you access the object in the application class, you can define simple object declaration that will work.
But we are accessing it with in activity - it is better to have thread safe singleton.
@@CheezyCode Sorry bhai but samjh nhi aaya..firstly ki object b toh thread safe hota h na? secondly activiy me aisi kya problem h jis wjah se simple object decalaration will not work...but will work in application? pls agar aap thoda detail m smjha sko because i want to clear my concepts
Thanks 🙌
Ending music and song is nice 🙂
Thanks
Amazing Explanation Sir ❤🫡
Sir Coroutines ko bhi details me explain kr dena.. I am really enjoying this playlist.
Sure bro...Coroutines pe dil se content ban rha hai....poori koshish
@@CheezyCode thanks a lot 😇
Great Teaching sir.....if possbile please provide the content "like website" for new video so that we can prepare for interview.........please sir...
bilkul bro koshish karte hai...
Great video.. keep it up. After finishing this series pl. make a series on Firebase Push Notification ( especially when app is no longer in background). I found many videos on that but they only showed either foreground or background scenarios.. no video found based on how to get Notification when app is no longer running in background which is realtime case ..
Noted
very much helpful contents
Thanks sir
Thanks Abdul
Very good explanation
thanku sir just amazing❤❤❤
♥
Always Well Explained !! Thanks
Thanks Vidhi
Database me agar 2 column me long value ho to kya dono long value to time me convert karega?
Agr nahi to fir usko kese pata chalega k konsi long column ke liye ye converter use krna hai?
Datatypes same hai toh converter chalega...aur ye try karo - clarity jabhi aayegi...question toh answer hojayege
Love you don't stop
Thnx for everything cheezy code
Thank you 🤘
Sir how to create the type convertor for Files and images
If we have multi type converter, then how compiler know, which type converter they have to use??
cheked your replies on previous comments, found solution, Thanks❤
but if you have another way to explain now, pls
Thanks❤
Here, you made a convertor for date, but how to make convertor for any different types or any custom class. I need a convertor for type FILE
Convert that to Binary...but I would suggest not to store that in DB...store it as a file only - just store the file name inside sqlite
@@CheezyCode" store it as file only" ?
Data type "File" is not available in DB....then how...?
Sir, this code this work only one time when i again run the program the app is crashing
please help i cannot find out the problem i done all the things correctly .
sir why suspend is not working when i removed suspend work properly but is still there is not there in background thread how shou;d i do sir
Thank you #CheezyCode
Thank you 🤘
Bro in this 6:41 typeconvertor we convert Data to Long for inserting for Fetching Long to Data is used when i will use in my real application the data will show as like this Wed jul 29 19:24:54 GMT + 05:30 2023 simply i want to format the data how to do that bro how to format like DD/MM/YY only
Just google it
stackoverflow.com/a/61410177
stackoverflow.com/a/11773496
can anyone answer, this is SQLlite right?
Yes behind the scenes it is SQLite
How will that automatically convert from date to long and long to date?????
same question, how does it know when to Convert what to convert, we didnt define it here
Primitive types don't need conversion
Whenever it encounters types other than primitives - it looks for type converters. If type converters are present, it uses these functions to convert values, otherwise will throw an error.
@@CheezyCode means It will look for a function that takes data type that needs to be converted, if it is present then it will use that function right ?
Yes...check type converters documentation
@@CheezyCode Sure, I’ll check, Thanks for your time 🫶
Bhai gana bahut acha hai
50k pe release karna h
React native oe video banaiye
❤❤❤❤
jab me database me data insert karta hu to app crash ho jata he , muje pata nahi kyu. aap help kar sakte ho
Check the logcat for the error
7:34 ; at this point , I think stupids like me will definitely select @TypeConverters in place of @TypeConverter as it was suggested first , which is going to throw a compile time error !
Bhai vo converter wale fun jo banaye hai vo call kaha se kiye hai date ko change karne ke liye?
Smaj nahi aaya yaar? 🤔
7:58 ke baad samaj nahi aaya
Room apne aap call karta hai...contactdatabase pe typeconverters ki annotation add kari h
@@CheezyCode uske kaise pata kon sa call karna hai matlab agar m usme ek or fun rakhu
FromlongtoString(value :Long) : string{
return str(value)
}
To kya hoga?
Bro data type check hota hai.... function jisme date type ka input ho, wo use hoga...
Fir jab wapsi long jisme input hoga wo use hoga..room check karta hai data type dekh ke
Entity ke andar jo field h uska type bhi toh dekhega...string banane se date type kaise milega
Acha aise samajh skte ho -
Room ne dekha entity ke andar date hai...usne kaha date store nahi kar skta - convertors pe pahocha usne dekha - koi aisa function jo input mei date le rha ho...usse mila ek function jo date ko long mei convert kar rha tha....
Ab access kar rha hu database se - value mili long usne kaha long ke liye koi aisa method hai jo date mei convert kar rha ho - usse mil gya - usko use kar liya usne
Little Correction
fun getInstance(context: Context): ContactDatabase {
if (INSTANCE == null) {
synchronized(this) {
if (INSTANCE == null) {
INSTANCE = Room.databaseBuilder(
context.applicationContext,
ContactDatabase::class.java, "ContactDB"
).build()
}
}
}
return INSTANCE!!
}
why another if in inside ?
gana ka kya naam h mil nahi raha h
Gaana karege release...inhouse h