Android LiveData (JAVA) Tutorial | LiveData Step By Step For Beginners | Android JET PACK (Part-3)
Vložit
- čas přidán 27. 04. 2020
- LiveData is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. This awareness ensures LiveData only updates app component observers that are in an active lifecycle state.
For Adding the lifecycle components visit this link : developer.android.com/topic/l...
The advantages of using LiveData
- Ensures your UI matches your data state
- No memory leaks
- No crashes due to stopped activities
- No more manual lifecycle handling
- Always up to date data
- Proper configuration changes
- Sharing resources
To Know more about Live Data Please visit this link : developer.android.com/topic/l...
Let's Learn it with a simple example in the video.
DOWNLOAD THE STARTER CODE : github.com/pavankumart46/View...
FOR SOLUTION CODE : github.com/pavankumart46/Live...
Link for ViewModel (Previous - Video 2) Video : • Android ViewModel (JAV...
Link For DataBinding (Video 1) Video : • Android DataBinding Tu...
______________________
Social Media Links
______________________
Follow Me on Social Media :
Facebook : vidhvantech
Instagram : / pavankumarr. .
LinkedIn : / pavankred. .
Twitter : / trainertpk
Bolg : pavankreddytadi.blogspot.com/
My Profile: tpkreddy.github.io - Věda a technologie
very nice. 👌🙏🙏 please keeping uploading 👍👍
I rarely comment on any videos but this one made me comment, You've explained like an experienced person. Keep it up!
Liked the fluent explanation. Please show an example with sharedViewModel for F2F A2F F2A communication.
Liked your explanation, Please also make vedios on dependency injections like hilt , koin
Di and hilt is not used in java ?
Sir,Can We Work With the data From API also using this?
@@VIDHVAN_official thank u sir