#3 How to use Hilt with Retrofit ( Complete guide )

  Рет қаралды 5,903

Android Geek

Android Geek

Күн бұрын

Пікірлер: 31
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
What is the next topic you would like to be taught? 🤩
@iameben
@iameben 2 жыл бұрын
proper way of caching retrofit response so that user doesn't make api calls every time.
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
@@iameben 👍
@carlaortiz4069
@carlaortiz4069 9 ай бұрын
Hello, I have been programming for more than 20 years and I am just starting with Kotlin, thanks for the tutorials, I hope to learn soon, God bless you!
@Tamerthedark
@Tamerthedark Жыл бұрын
this is way too good and detailed. Thank you for your time.
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Glad you enjoyed it! 😊✨🙏🏻
@mdmehedifakir5978
@mdmehedifakir5978 Жыл бұрын
Wow, Really Very Helpful maam ! thanks so much.
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Glad it was helpful! 😊🙏
@govindchoudhary7311
@govindchoudhary7311 2 жыл бұрын
You are awesome thanks for sharing knowledge
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Thanks for your feedback 😊🙏
@riyadalmuhammad
@riyadalmuhammad Жыл бұрын
thank you for your great efforts. can you make a video when ApiServices functions have more than one Query as parameters
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Yes, sure 👍😊
@emadkeyvani1660
@emadkeyvani1660 2 жыл бұрын
Thanks for the nice subject 👍
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Welcome 😊 glad you like it 👍
@kamaldeepak4282
@kamaldeepak4282 2 жыл бұрын
Nice tutorial
@AndroidGeekCo
@AndroidGeekCo 2 жыл бұрын
Thanks ✨🤩
@gianpaolof1791
@gianpaolof1791 Жыл бұрын
thanks a lot for this very detailed video :-) I have also a question, since I'm new to both Hilt & REtrofit: the apiRepository is injected in the fragments, why did u choose activity as its scope? would it be wrong to use the same lifetime of the fragment?
@SahilNagi
@SahilNagi 10 ай бұрын
why u have used ActivityScoped on the respository, we can use AndroidEntryPoint too ?
@kyryllrusalin5226
@kyryllrusalin5226 Жыл бұрын
Please, can you explain me what function setIsRecyclable(false) is do with each item in RecyclerView, cuz I don't understand and I never saw this before
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
here is official reference : developer.android.com/reference/kotlin/androidx/recyclerview/widget/RecyclerView.ViewHolder#setIsRecyclable(boolean)
@kyryllrusalin5226
@kyryllrusalin5226 Жыл бұрын
@@AndroidGeekCo I can't understand for what we use this functions, before set this question I checked many articles in Internet and official documentation, but can't understand for what this fun, cuz before I wrote this method onBindViewHolder without setIsRecyclable
@mdmehedifakir5978
@mdmehedifakir5978 Жыл бұрын
ma'am if i don't have any api_key so what can i do for the ApiModule Please help... i'm getting error for that
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Hi , you just need to remove the line that related to API_KEY , and all the module should work without any issue 😊
@makasiparsad
@makasiparsad 9 ай бұрын
Thanks for this. However it appears you're using slightly dated practices... Do you perhaps have jetpack compose varieties for the same topic? 😅
@NhânBùiHữu-q3f
@NhânBùiHữu-q3f 10 ай бұрын
let's do it with mvvm
@kyryllrusalin5226
@kyryllrusalin5226 Жыл бұрын
Thanks for very usefull tutorial, but I have one error, when I build and run project on 57:38 timecode (after fix errors that display on video 56:36 timecode) error: [Dagger/MissingBinding] com.example.movieapp.api.ApiServices cannot be provided without an @Provides-annotated method. public abstract static class SingletonC implements MyApp_GeneratedInjector Can you help me for fix this problem? P.S. I wrote all code be like yours
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
somewhere in your code , missing codes about your Hilt! check these step : - check you MyApp class( annotation -> @HiltAndroidApp - define it into manifest - > android:name=".MyApp") - check your fragment or activity for having the annotation -> @AndroidEntryPoint -check you ApiModule class with the code on the repo : github.com/ezatpanah/Hilt-Retrofit-KZbin/blob/master/app/src/main/java/com/ezatpanah/hilt_retrofit_youtube/di/ApiModule.kt
@kyryllrusalin5226
@kyryllrusalin5226 Жыл бұрын
@@AndroidGeekCo Thanks, I missed @Provide and @Singleton annotations for provideRetrofit function in ApiModule.kt file. In your video, on 34:03 timecode You forgot write this and I thinking it correct :) After check your repo I fixed my problem
@AndroidGeekCo
@AndroidGeekCo Жыл бұрын
Thanks for letting me know about this mistake , i will add this note on description 😊🙏✨
@kyryllrusalin5226
@kyryllrusalin5226 Жыл бұрын
@@AndroidGeekCo Thank You for your great job, I prepare for my first job by your guide. On my opinion, your tutorial better that other, cuz You wrote clean code and explain every moment very well 🥰
How to use DataStore Preferences  in Kotlin
24:34
Android Geek
Рет қаралды 10 М.
#2 How to use Hilt with Room Database ( Complete guide  )
1:04:03
Android Geek
Рет қаралды 4,2 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Getting started with Retrofit - Crash Course 🔥
1:39:09
Android Geek
Рет қаралды 10 М.
Все про Dagger Hilt в Android Studio + Kotlin
52:11
Neco Ru
Рет қаралды 14 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 84 М.
Best of CES 2025
14:50
The Verge
Рет қаралды 451 М.
#7 Kotlin Coroutines Flow. StateFlow. SharedFlow || Курс по корутинам
20:41
Android Broadcast. Все об Андроид разработке
Рет қаралды 30 М.
#7 How to use Flow with Retrofit - Home screen (Complete Guide)
1:17:45