Тёмный

Getting started with Retrofit - Crash Course 🔥 

Android Geek
Подписаться 3,3 тыс.
Просмотров 9 тыс.
50% 1

Note :
please consider ,I have tried to keep these basic tutorial , simple and without any extra code , and focus on main purpose of video😊
Here we'll learn the basics of Retrofit and create an Android client for HTTP requests.
For fetching and sending data from/to the server, we have a lot of network libraries. Retrofit is a complete replacement of Volley and all other libraries, for example. In terms of performance, ease of use, extensibility, and so on.
In this tutorial, I want to use www.themoviedb.org's API .
For this, you need an API key. Please register and find your key under the Settings, API Section.
Github source :
github.com/ezatpanah/Retrofit...
Mastering ConstraintLayout - Part 1 :
• Mastering ConstraintLa...
Mastering ConstraintLayout - Part 2 :
• Mastering ConstraintLa...
How to use RecyclerView in Kotlin - In-Depth Guide :
• How to create a Recycl...
How to Use DiffUtils in RecyclerView in Kotlin :
• How to Use DiffUtils i...
Medium's Article :
/ getting-started-with-r...
✨ Join Medium to read thousands of valuable stories ✨
/ membership
☕ You like my free content? Here you can buy me a coffee:
www.buymeacoffee.com/Reyhaneh
If you're looking to enhance your Android skills or have any questions about the field, feel free to reach out to me on MentorCruise. I'm here to support your growth and learning! Let's connect and learn together! 📚💡
mentorcruise.com/mentor/reyha...

Опубликовано:

 

6 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@HIDDENPOOL_Dev
@HIDDENPOOL_Dev Год назад
Great video ☺️
@AndroidGeekCo
@AndroidGeekCo Год назад
Thanks for watching 😊
@unemployed_dev
@unemployed_dev Год назад
nice video help me so much 🤙🤙
@AndroidGeekCo
@AndroidGeekCo Год назад
Glad to hear it! 😊✨
@vinithanabar277
@vinithanabar277 Год назад
I felt like you have just made the implementation of recycler view complex. And it would have been more good if you would explain about interceptor more. It will be slightly tough for beginners to understand. But still I managed to understand. A little bit of more explanation will make your content more good😊
@umanahuduak6347
@umanahuduak6347 Год назад
hi Rehane, thanks for your awsom videos, could you please make a video on retrofit and pagination
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi , your welcome 😊 of cource , after next video، I will prepare a video for pagination with retrofit 👍
@kakakaka9408
@kakakaka9408 Год назад
hello nice video but there is an issue with the endpoint for movies its stating null
@shahzamanrai2617
@shahzamanrai2617 Год назад
Great!
@AndroidGeekCo
@AndroidGeekCo Год назад
Thank you so much 😊✨
@meisamghasemzade2389
@meisamghasemzade2389 Год назад
Hi Professor . First of all, thank you for your good course. The second thing is that I encountered an error and I don't know how to fix it. I even copied your code into Github, but the problem still didn't go away. Thank you for helping me ❤️ Error: 👇 E/RecyclerView : No adapter attached ; skipping layout
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi Meisam , you're welcome😊 , i have checked the source code on GitHub and works for me without error and i could get the list of movies , so please check again your code with the git repo and also please check your adapter , and also where you passed the list into your adapter then set for Recycler view's adapter 😊 if you have any question , don't hesitate , ask me 😊
@meisamghasemzade2389
@meisamghasemzade2389 Год назад
@@AndroidGeekCo thank you😍
@AndroidGeekCo
@AndroidGeekCo Год назад
you're very welcome 😊
@hossamqandel5303
@hossamqandel5303 Год назад
Could u make a tutorial about fcm and how to when a new message received make nitification show when user in foreground service?
@AndroidGeekCo
@AndroidGeekCo Год назад
yeah , sure , I will try to prepare some videos about FCM in future 😊
@phamvanbang1879
@phamvanbang1879 Год назад
Hi Reyhane, thanks for your video. Can you tell me how to create API_Key ? I don't understand about it
@AndroidGeekCo
@AndroidGeekCo Год назад
your welcome🤩 please go there : www.themoviedb.org/signup and sign up and after login , goto to settings -> API -> API Key (v3 auth) you can find your API Key 😊
@sahibaliyev2445
@sahibaliyev2445 Год назад
Hi Reyhane, Posters for the video in main screen will be repeated after nine elements, please help fix this bug. I think issue in DiffUtils isnt it?. Ouh i find ussue there i fogot override getItemViewType method in my adapter. Thank you.
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi , first sorry for late , and about you issue , did you set -> holder.setIsRecyclable(false) on your onBindViewHolder in adapter ?
@vladyslavdremliuha6147
@vladyslavdremliuha6147 Год назад
Hi! Great video! And how I can use this app, I need to create api key and paste it?
@AndroidGeekCo
@AndroidGeekCo Год назад
Thanks for your feedback 🤩 you can go to the website: www.themoviedb.org/ and register on it and then under setting section you can find your own API KEY and then paste it into your code
@vladyslavdremliuha6147
@vladyslavdremliuha6147 Год назад
@@AndroidGeekCo Thanks a lot, I've done that. But my application does not start, the loading wheel on a blue background is constantly spinning :-(
@AndroidGeekCo
@AndroidGeekCo Год назад
so , you should debug your app , in the logcat you can see what code you get when the request sending , or ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-KAuifVDU9F4.html here on the onResponse method please put several log , step by step while completing this part and check logcat .
@swastikpanigrahi8398
@swastikpanigrahi8398 Год назад
Hi, I am getting this error : no adapter attached ; skipping layout. Could you please help me to resolve this?
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi , its hard to say , maybe there is something wrong in your adapter or your Recyclerview's xml , Do you have your code on GitHub to check? please check your code with repo code and make sure all the things are same : github.com/ezatpanah/Retrofit-RU-vid
@MrAhmed-li7ip
@MrAhmed-li7ip Год назад
How to fetch specfic data from nested JSON using retrofit in Kotlin?
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi , there is several way , but basicly , you can create your custom data class with exact model that you want to have it in your app and also you can use Serialize for better managing the name betwen your model and the json side (in addition , it depends on your json , maybe you need to have even more than 3 data class inside one data class to handel it , it depend on your json and the data that you want to fetch! )
@mohamedraafat123
@mohamedraafat123 Год назад
Does he use a specific architecture pattern like mvvm or not in this video
@AndroidGeekCo
@AndroidGeekCo Год назад
in this video , there is no specific architecture pattern like mvvm , the purpose of this video is showing the concept of working with retrofit .in the future we will have a lot videos about ,how we can using architectures in kotlin
@johnhabibpour8375
@johnhabibpour8375 Год назад
Hi Reyhane, Thanks for your awesome video,yes I am beginner in Android, I did all steps you did but my app just stops in mainActivity and shows white page without any error, Another thing that I didnt understand is about POSTER_BASEURL you didnt mention where is come from ? Thanks
@AndroidGeekCo
@AndroidGeekCo Год назад
Hi , Thank you for your feedback 😊 and about your issue, in the Mainactivity , we put some response code Log; first please check this log, and then you can see which part of your code doesn't work, here : github.com/ezatpanah/Retrofit-RU-vid/blob/master/app/src/main/java/com/ezatpanah/retrofit_youtube/ui/MainActivity.kt you can check again my code and put your log like that
@AndroidGeekCo
@AndroidGeekCo Год назад
and about POSTER_BASEURL , developers.themoviedb.org/3/getting-started/images -> here ,you can check documentation of this API 😊
@johnhabibpour8375
@johnhabibpour8375 Год назад
I really appreciate it for quick response, the error is (2022-09-01 13:01:51.984 21299-21299/com.john.tmdp E/onFailure: Err : 404) Client error response, may I ask you how can I fix it, Actually I downloaded yours and changed with my API key it's working very well, Thanks a lot
@AndroidGeekCo
@AndroidGeekCo Год назад
404 or Not Found , maybe something wrong with your base url / also check : github.com/ezatpanah/Retrofit-RU-vid/blob/master/app/src/main/java/com/ezatpanah/retrofit_youtube/api/ApiServices.kt with your code , and also your response model class , let me know the result 😊
@johnhabibpour8375
@johnhabibpour8375 Год назад
I checked them with your code , there is no difference , I confused completely, sorry about bothering
@NEMMOZ
@NEMMOZ Год назад
What about MVVM and Coroutines?
@AndroidGeekCo
@AndroidGeekCo Год назад
As soon as possible 😉 first I need cover basic topic and then I can cover mvp , mvvm , mvi 😊 and about coroutines , sure , I guess next video or after next is about coroutines 😊
@kakakaka9408
@kakakaka9408 Год назад
where do you generate the api key
@AndroidGeekCo
@AndroidGeekCo Год назад
www.themoviedb.org For getting API KEY , Please register and find your key under the Settings, API Section.
@mohamedelgohary683
@mohamedelgohary683 Год назад
Why didn't you use Fragment and navigiation
@AndroidGeekCo
@AndroidGeekCo Год назад
Because the main focus was on retrofit and how we can work with that, for others tutorial, I will use a single activity with Fragment and navigation 👍
Далее
Mastering Coroutines in Kotlin  -  Complete guide
54:36
БАТЯ И ТЁЩА😂#shorts
00:58
Просмотров 1,7 млн
The Ultimate Retrofit Crash Course
34:49
Просмотров 91 тыс.
80 Year Olds Share Advice for Younger Self
12:22
Просмотров 1,4 млн
Mac Fanboy Tries ARM Windows Laptops
31:40
Просмотров 154 тыс.
Getting started with Retrofit | android studio | java
12:56
#3 How to use Hilt with Retrofit ( Complete guide )
1:16:52
Retrofit Android Tutorial for Beginners with Kotlin
29:34
How To Debug React Apps Like A Senior Developer
21:07