Uploaded February 2022 | Updated September 2026, 1 week ago
Learn Dagger 2 Dependency Injection in Android. In this video - learn what is a singleton, how to define singletons in dagger 2 using @Singleton annotation. @Singleton is just a normal annotation that defines a scope using @Scope annotation. @Scope define the lifetime of the singletons. @Singleton annotation creates single objects within the component. Component is just a bag of objects with singletons and other objects. If component object is re-created, then singletons inside that component will be recreated. So to achieve true singleton behavior i.e. object exists for the whole lifetime of the application - you need to create your component at the application level. Learn all about this in Hindi.
Topics covered -
1. What are singletons?
2. Singletons in Dagger2 using @Singleton Annotation
3. What is scope?
4. Issue with @Singleton annotation.
5. Complete Example of Dagger 2 in Android.
Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd
Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2
Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU
Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G
For more info - visit the below link
cheezycode.com
We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode
Learn Dagger 2 Dependency Injection in Android. In this video - learn what is a singleton, how to define singletons in dagger 2 using @Singleton annotation. @Singleton is just a normal annotation that defines a scope using @Scope annotation. @Scope define the lifetime of the singletons. @Singleton annotation creates single objects within the component. Component is just a bag of objects with singletons and other objects. If component object is re-created, then singletons inside that component will be recreated. So to achieve true singleton behavior i.e. object exists for the whole lifetime of the application - you need to create your component at the application level. Learn all about this in Hindi.
Topics covered -
1. What are singletons?
2. Singletons in Dagger2 using @Singleton Annotation
3. What is scope?
4. Issue with @Singleton annotation.
5. Complete Example of Dagger 2 in Android.
Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd
Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2
Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU
Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G
For more info - visit the below link
cheezycode.com
We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode










