No video

The Ultimate Retrofit Crash Course

  Рет қаралды 93,053

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 120
@codinginflow
@codinginflow 3 жыл бұрын
Wow just 9 days ago I was thinking about this exact topic and now you make a video about it! You can read my mind
@amitmondal7427
@amitmondal7427 3 жыл бұрын
Are you comedy me 😂😂😂
@ElliotCoil
@ElliotCoil 3 жыл бұрын
then create net tutorial with addition error body handling.
@yilmazbingol4838
@yilmazbingol4838 2 жыл бұрын
exactly 9 days :). you really calculated
@anonymoususer8849
@anonymoususer8849 Жыл бұрын
He always comment to indirectly self promote his channel 😂
@lalala6798
@lalala6798 Жыл бұрын
Great tutorial! Ive been working in Android for a few years now and actually never built an app from scratch. This tutorial has been amazingly helpful for me to get my fundamentals down. I love your explanations for everything you do in such a clear and concise way. Excited to go through the rest of your tutorials!
@spbs-lb1lo
@spbs-lb1lo 3 жыл бұрын
OMG you won't believe it I was just working on Retrofit and your Course came alone ........ What a timing!!!
@harishussain9003
@harishussain9003 3 жыл бұрын
I am the same guy 🤣 but with different account love your videos ❤️
@rahulbhavani6160
@rahulbhavani6160 3 жыл бұрын
Happened with me many times, seems like Phillip have some secret super natural power 😁
@ashishgautam2842
@ashishgautam2842 3 жыл бұрын
Its Law of attraction bro nothing else, we all attracted by what we need
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Nah, I really have a secret natural power
@filip_g
@filip_g 3 жыл бұрын
Same here :D
@imnithish
@imnithish 3 жыл бұрын
I was working on Retrofit. The same time you posted this. I can't believe this. You're the best!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks, happy to help!
@AbdulWahab-kk1hs
@AbdulWahab-kk1hs 3 жыл бұрын
Very concise, to-the-point and understandable. Keep up the good work Philipp!!
@ninelivesforge6432
@ninelivesforge6432 Жыл бұрын
This was a great tutorial, previous to this one I did the shopping list app tutorial, which is the oldest tutorial on your channel, and it was a little difficult to understand how all the classes work together, but here everything is so much more clear and better explained. Thank you so much for your videos, love your channel!
@oleg12395
@oleg12395 2 жыл бұрын
I know English not so good, but your tutorials so simple to understand ... Thank you sansei )
@axelasa277
@axelasa277 3 жыл бұрын
Please make more and more videos on Kotlin. I'm from Kenya And I have to give it to you mate. this is awesome stuff. I've watched 3 of your videos, this being the fourth and I must say you are the Bomb man. cheers @Phillipp Lackner
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks man!
@erthree95
@erthree95 3 жыл бұрын
Great tutorial. Learned a lot from your news mvvm series. However, there is more to it when it comes to HTTP calls like: Passing form data, Uploading files, Headers and Interceptors to name a few. Hope you will make an extended tutorial that covers those. Handling JWT tokens and maybe storing them and auto appending them to the authorization header with Retrofit could be a nice tutorial.
@alextl97
@alextl97 3 жыл бұрын
I agree
@interseting-funnyvids
@interseting-funnyvids 3 жыл бұрын
Thanks, Philipp.Your way of teaching is very good
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks! :)
@seyyedmahdihosseini4395
@seyyedmahdihosseini4395 2 жыл бұрын
if not the best but definitely one of the best and complete tutorial i have ever seen, and a sincere apology if i can not like them all at once, but i will keep making tutorials
@mohancena8970
@mohancena8970 2 жыл бұрын
Well done brother 👏👏👏 It's really helpful to me ❤️ Thank you 😊 keep learning and Teaching 😊
@rahmakthiri9818
@rahmakthiri9818 3 жыл бұрын
Thanks a lot Philipp ! This tutorial is exactly what I was looking for
@soggytonispuri6901
@soggytonispuri6901 7 ай бұрын
Hello sir, thank you for your great tutorial, it's just that, I had a lot of trouble setting up an API connection that requires an API-KEY, it was a traumatizing experience of self doubt and brain rot
@stasleonov5196
@stasleonov5196 Жыл бұрын
Philipp, you are the best teacher, thank you so much.
@dashaxedit
@dashaxedit 3 жыл бұрын
Right at the time. Thats, what I wanted. Thanks from Russia
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Glad it helped!
@dashaxedit
@dashaxedit 3 жыл бұрын
@@PhilippLackner I have got a question. How do I refresh data? Like if it's a currency app, I do need to update values each minute. Thanks in advance)
@sijanneupane
@sijanneupane 2 жыл бұрын
damnnn! so here was the video! I scrapped almost the entire internet after News API App and this video was hiding here!
@bhavyavarmora4049
@bhavyavarmora4049 3 жыл бұрын
Great video on Retrofit...thanks for making this crash course and you can make a video on ROOM DataBase in detail so it would really helpful for everyone. Once Again thanks for this video man.
@CodeWithTahaCWT
@CodeWithTahaCWT 2 жыл бұрын
Your videos are so interesting, I can communicate with them and understand those deeply. Thanks
@TheDeeStain
@TheDeeStain 3 жыл бұрын
It's just crazy how in javascript you use a simple fetch("") or axios but in android it takes data type models, instance of retrofit api interfaces repos viewmodels etc..
@akmoudgil
@akmoudgil 3 ай бұрын
Nice tutorial sir! Thanks a lot!
@elnino9139
@elnino9139 Жыл бұрын
Hey Phillip. Thanks first for your crash course about Retrofit. I wanna ask if I'm learning now with your course, will there be a big different from the nowadays Retrofit. Or maybe it is still useful. I'm apllying my internship so it would be bad if this technologie is old
@MatthewSmith-mt3kz
@MatthewSmith-mt3kz 2 жыл бұрын
Great tutorial, you're videos are my go to when learning something new.
@kitcat2449
@kitcat2449 2 жыл бұрын
Awesome content, super easy to follow. Thank you very much!
@rahulbhavani6160
@rahulbhavani6160 3 жыл бұрын
Thank you Phillip, great video as always 👌👍
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thank you!
@aginamabednego
@aginamabednego 2 жыл бұрын
Thank you so much Phillip. Really enjoyed this course
@Another0neTime
@Another0neTime 3 жыл бұрын
Awesome video. Thank you!
@jafartemirov7812
@jafartemirov7812 3 жыл бұрын
Philipp make an video about Scoped Storage, such as capturing image from camera and from gallery, that would be brilliant
@axelasa277
@axelasa277 3 жыл бұрын
I could share my github project on this
@damercy
@damercy 3 жыл бұрын
Great tutorial Philipp! 😀 Is there a possibility for a crash course on retrofit but for a production-grade app? Would love to learn about the best practices on using retrofit in a production-level application!😅
@PhilippLackner
@PhilippLackner 3 жыл бұрын
There are no secrets, you wouldn't do it much different than here. For a real app where I use retrofit I have a course on my website here pl-coding.com/courses/powerful-kotlin-rest-apis-with-ktor/. You learn to build your own API as well
@brucebane7401
@brucebane7401 3 жыл бұрын
AMAZING BRO YOU ARE THE BEST !!!!
@anudeepananth
@anudeepananth 3 жыл бұрын
OMG.... the timing for this course couldn't be more accurate than this for me....
@PhilippLackner
@PhilippLackner 3 жыл бұрын
nice :D
@Sc2MooDy
@Sc2MooDy 3 жыл бұрын
Very good content, thank you very much and keep it up!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks, will do!
@makasiparsad
@makasiparsad 5 ай бұрын
This is great. How would you incorporate retrofit for database operations using a remote turso /libsql database?
@VenewebTV
@VenewebTV 2 жыл бұрын
Excellent video, very didactic, regards from Caracas, Venezuela
@SunAndMoon-zc9vd
@SunAndMoon-zc9vd 13 күн бұрын
Are the techniques here also relevant for those who use Jetpack Compose (except for the XML for the layout)?
@kartikgdrbd
@kartikgdrbd 6 күн бұрын
same doubt
@osamaghazal
@osamaghazal 6 ай бұрын
Great Video, Thank you very much
@TheIsuruathukorala
@TheIsuruathukorala Жыл бұрын
Very informative tutorial. I code and practice my self too. But I wonder how this do with Compose layout ? 🤔 I haven't seen any one have done with. Could you make one ? Thank for amazing tutorials.... Hope to learn more....
@gulfappdeveloper2849
@gulfappdeveloper2849 3 жыл бұрын
I am expecting this course, Thanks
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Hope you like it!
@mustafaammar551
@mustafaammar551 3 жыл бұрын
Thank you bro Very cool video Wish you all the best👍👍👍👍
@user-gi4no6gn7m
@user-gi4no6gn7m 3 жыл бұрын
Philipp you are best. This is a great video
@girishparate6410
@girishparate6410 3 жыл бұрын
I love this Crash Course videos 😁
@iziaulla
@iziaulla 9 ай бұрын
I wish that you could do one video of Retrofit using POST. I have the Json from my Android just the way that I like it, but it doesn't post to server for some reason.
@iam-learning6374
@iam-learning6374 3 жыл бұрын
Hey buddy - Could you please make one video on clean architecture and solid principles? thanks in advance.
@Sam-yb9ut
@Sam-yb9ut Жыл бұрын
Super, thanks
@user-ll5cd6fc1m
@user-ll5cd6fc1m 3 жыл бұрын
Thanks your great KZbin!! from JAPAN🎌🎌🎌
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Thanks for watching!
@mehrdaddorari1205
@mehrdaddorari1205 3 ай бұрын
How to prevent Retrofit from encoding request Body. In Query I know I can add "encoded = true" and it works, but in body Retrofit adds / to my request body and it doesn't work with my Api.
@saiyadymhn
@saiyadymhn 2 жыл бұрын
Good tutorial for Retrofit
@EinALGHOUL
@EinALGHOUL Жыл бұрын
you're awesome, thank you!
@andreytsybylsky3526
@andreytsybylsky3526 3 жыл бұрын
thanks for the content. You explain very coolly, I am delighted. I am thinking of signing up for your KTOR course. Keep doing the same cool. I advise everyone to subscribe.
@footballCartoon91
@footballCartoon91 Жыл бұрын
@9:24 seems to me that we need to provide an interface to Retrofit package so that it knows what type of data structure that it needs to parse into the appropriate components of the data..but why they want an Interface? does interface cannot be instantiated and the body of the interface's function should be empty i.e it needs another class that inherits from the interface and write the code that is required
@demigod6190
@demigod6190 3 жыл бұрын
you got subscribers from Traversy Media! Anyways, Great video!
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Awesome, thank you!
@jerrymatera
@jerrymatera 3 жыл бұрын
Satisfied. But don't the Todo data class need some annotations.
@AppleMenace
@AppleMenace 3 жыл бұрын
The Hero everyone needed 💪
@akashgandhi1224
@akashgandhi1224 3 жыл бұрын
Thanks for the video 😊
@hariomsharma1202
@hariomsharma1202 3 жыл бұрын
Please make a video on Web Sockets with Android, there is not much details anywhere about this topic.
@anl8291
@anl8291 2 жыл бұрын
hey bro your courses are very nice but my country's currency is so worthless Half of my country's minimum wage, it would be nice if you could make a discount
@shawnf3495
@shawnf3495 2 жыл бұрын
What about filtering out null or blank values? Let's say in that Json collection that title is a nullable value and it let's also say that it can be a blank value. Does retrofit or Gson automatically filter null values or blank values or do we implement a custom json adapter to handle that? Also, let's say we wanted to sort and group the json response. For example, let's say I wanted the json response sorted by id first, then userId, and then grouped by completed. Where would I do the sorting and grouping? Is that also something we would handle in custom adapter or would we do that in our repository or is it something we do in our viewModel?
@philiplo225
@philiplo225 Жыл бұрын
I get a unresolved reference error for ItemTodoBinding even though viewBinding is set to true. How do I fix this?
@neodycreare
@neodycreare Жыл бұрын
Thanks for the tutorial; question: how do we add code to call an API that requires putting in a bearer access token?
@valik1495
@valik1495 Жыл бұрын
Good job!
@asifiqbal1261
@asifiqbal1261 3 жыл бұрын
Make videos on Better Android Apps Using MVVM with Clean Architecture, and also Unit testing.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
I have all that
@hassanrana998
@hassanrana998 2 жыл бұрын
Thanks for this great tutorial A query:i have suspend function in interface which returns Response so when i get that response and call function .string() it gives me warning "Inappropriate blocking method call" Could you please tell me what is the best solution for this?
@FelipePalma14
@FelipePalma14 3 жыл бұрын
Hey Philip can you explain about prominent disclosure location android and new google's policies? Ty
@dastanikus
@dastanikus Ай бұрын
This is not the ultimate. Just a basic super simple crash course. To make it ultimate you better go through docs and implement all possible cases including prod like setup and in the end we have no any other questions about Retrofit.
@lucianocassani9899
@lucianocassani9899 2 жыл бұрын
Hi, I'm using this video as guide for a little app, but I get this error "expected being array but was being object" I know that the problem is that the API is returning an object, but I can't figure out how to solve it. Thanks!
@rimo8833
@rimo8833 Жыл бұрын
While making the RetrofitAPI i am getting this error in the singleton object: Property delegate must have a 'getValue(RetrofitInstance, KProperty<*>)' method. None of the following functions is suitable: Anyone has any fix for this??
@deepsheth1086
@deepsheth1086 2 жыл бұрын
why you donot use volley for same purpose?
@akiyai
@akiyai 2 жыл бұрын
Hi Phillip, can you tell me where can I find ALL your available courses? I have just registered in your site, but I can see only 4 of them. I guess that is not all.
@mrpi230
@mrpi230 3 жыл бұрын
Thank You, can you also make a video on " how to make a android vpn app".
@abuiman5251
@abuiman5251 3 жыл бұрын
Thanks 👍🏻
@fliamachado
@fliamachado 2 жыл бұрын
hi, Is alway a pleasure to learn from you, can you shortly explain why the change in this-> "ResultViewHolder(binding: PlaceItemBinding)" to this: "ResultViewHolder(val binding: PlaceItemBinding)", what is the difference when declaring constructor parameters ??
@PhilippLackner
@PhilippLackner 2 жыл бұрын
the first approach only makes binding visible for the class and init block, but not inside functions and it doesn't expose it. So you couldn't write viewHolder.binding from somewhere else in the code. With the second approach this works thoughx
@pietro1901
@pietro1901 2 жыл бұрын
Thanks I struggled, did not pay attention on this
@somith16
@somith16 3 жыл бұрын
pls make a video on parsing the data also from json to gson and vice versa
@PhilippLackner
@PhilippLackner 3 жыл бұрын
I don't get the question
@somith16
@somith16 3 жыл бұрын
@@PhilippLackner like this one type of example @TypeConverter fun toProfileData(value: String?): ProfileDataResponseModel? { return Gson().fromJson(value, ProfileDataResponseModel::class.java) } @TypeConverter fun fromProfileData(value: ProfileDataResponseModel): String? { return Gson().toJson(value) }
@pembatamang8233
@pembatamang8233 3 жыл бұрын
how do I show download progress ? I couldn't understand how interceptors work.
@PandaTop.
@PandaTop. 3 жыл бұрын
This part of the text does not work in fragment ((What do I need to change ?? lifecycleScope.launchWhenCreated { val response = try { RetrofitInstance.api.getPhotos() }catch (e: IOException) { Log.e(TAG, "IOException, you do not have an internet connection") return@launchWhenCreated }catch (e: HttpException) { Log.e(TAG, "HttpException, unexpected response") return@launchWhenCreated } if(response.isSuccessful && response.body() != null) { picsumAdapter.photos = response.body()!! } else { Log.e(TAG, "Response not successful") } } response.body () !! highlighted in red. I did everything as shown in the video, but through fragment at not activity What should I do ??
@athithyaparamesh8251
@athithyaparamesh8251 2 жыл бұрын
17:09 Can you please share the link of the video for POST request in retrofit?
@miitter
@miitter 2 жыл бұрын
Hiii, thanks, please make a video with @path parameters :(
@coreyorndoff9417
@coreyorndoff9417 2 жыл бұрын
Does anyone know of a good video or any reference that helps with sending an image to the server using retrofit?
@toplisttv1289
@toplisttv1289 11 күн бұрын
What does this app do exactly?
@hianuyesperidiao5499
@hianuyesperidiao5499 3 жыл бұрын
good job
@RedstoneHair
@RedstoneHair Жыл бұрын
I don't have a list of objects tho, just one object in my json
@paulchibamba
@paulchibamba Жыл бұрын
Does retrofit handle cookies?
@audhil
@audhil 3 жыл бұрын
why still with GSON? not Moshi? @phillip
@literasikeamanandigital4771
@literasikeamanandigital4771 Жыл бұрын
I hope there is update to jetpack compose
@hotohori666
@hotohori666 Жыл бұрын
My fav moment is 9:12 xd
@arpitgupta3151
@arpitgupta3151 3 жыл бұрын
I'm getting IOexception error
@mouhibsahloul2577
@mouhibsahloul2577 3 жыл бұрын
same what did you do ?
@KelvinPatel
@KelvinPatel 3 жыл бұрын
I'm in depression after watching this video.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Hey, you're not alone
@alfian3570
@alfian3570 3 жыл бұрын
Up
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 40 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 5 МЛН
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 118 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 32 МЛН
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 275 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 195 М.
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Philipp Lackner
Рет қаралды 96 М.
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
Philipp Lackner
Рет қаралды 87 М.
"Hack ANY Cell Phone" - Hacker Shows How Easy It Is To Hack Your Cell Phone
15:56
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 40 М.
The standard library now has all you need for advanced routing in Go.
13:52
Make Your Code Clean With the SOLID Principles
18:24
Philipp Lackner
Рет қаралды 98 М.
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 40 МЛН