Retrofit Android Tutorial Kotlin in Hindi | Android App Development Hindi - #3
ฝัง
- เผยแพร่เมื่อ 13 ก.ย. 2024
- Android Tutorial Series For Beginners In Hindi - Learn how to use retrofit in android for networking. Learn by creating a small news app - learn how to make HTTP calls in Android using Retrofit in Hindi. Complete App to fetch data from an API covering HTTP GET requests. Retrofit is a very common library used in Android for HTTP. There are other libraries which are used - volley, okHttp, etc. Learn all this in Hindi.
Topics covered -
1. What is Retrofit in Hindi?
2. How to use Retrofit with an example
3. Basics of retrofit (Implement Interface, Create Retrofit Singleton object, Retrofit Builder)
4. Full working example of retrofit Hindi
5. GSON converter (JSON to Java Objects)
6. Learn how to define model classes for JSON to java objects
Learn everything about Android Retrofit from scratch in Hindi.
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
Java Beginners Tutorial Series -
• Java Tutorial For Begi...
For more info - visit below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode
Explaining the each and every line of the code, Make that environment for the learning, his voice flow, everything is just perfect. Thanks man
when you are explaining, your voice seem very calm, simple and easy to understand.
Thank you 🤘
Bhaiiiiii kya samjhaya hai. Koi bhi aise samjhaega toh shayad library bnane wala bhi ek-aadhi nayi cheez samajh jaye.
Mad respect bro!
One of the good video about Retrofit Implementation
🧡
After searching whole TH-cam I came to know that you also uploaded videos on retrofit. Should have checked the channel before
One of best series of Kotlin in India.
Thanks 😊... cheers
I was stuck at HTTP and HTTPS difference. Thank you so much for this explanation. Love from Bangladesh
2 mahine se soch raha tha is topic ko krne ki
aaj aapne 20 minute me krwa dia
thank you sir
Thankyou.. aap logo se motivation milta h.. 😊
@@CheezyCode aur hme aapki video se motivation milta hain💛💛
Thank you very much Sir.
very informative video thanks
best to the point video ever seen in youtube
thank you sir the way of teaching is very best and easily understandable
Thanks 😊...ho ske Toh share kare...thoda motivation mile
@@CheezyCode definitely sir
Really appreciate your explanation sir, Thank you!
Thanks for the Video Bhai , Great Content
this i sbest,very easy to follow,thanks bro
Your Content is Nice But you Please make more Videos in Kotlin of the different topic's as a lot of content available in JAVA but not in Kotlin only So Plz Make more Video in Kotlin, And Your explanation is nice too. All the Best
Thanks 🤘
very nice explanation🤩🤩
Thanks a lot 😊
Outro is Op 😁❤️, Apne Khud Record kiya kya bhai.
Yes....Thanks 😊
Sir can you make a video in custome live Api to get ,post ,fetch,delete, update data in kotlin i hardly need a video to explain everything 🙏 your explanation is very good sir i clearly understand
Please make a video through live API DATA BASSED and explain everything 🙏
Itna acchaaa explaination thanks sir
Thank you 😊...please share with your friends if possible
@@CheezyCode already done sir with all my groups
Thank you so much ❤️
thnx a lot bro im learning kotlin fr u
Thanks
Thank you again ♥️
great work sir🙏... keep it up
Thanks...do check the last part of the video...you will like it
Sir pls thoda jldi jldi videos dalaiye ,sir agr do videos ke beech me interval 12-13 din ka rhta he aage bhi tkh,it will be very difficult for us to follow the series
Yes...parso Tak news wali complete hojayegi....badi app nahi h ye
Bro,Coroutine pe video banao jisme acchi tarah batao ki coroutine kyo use karte hai aur kaise work karta hai
In this ex only one country can be passed as query...
If I want to fetch data from more than one country (but not all countries) how should the @ Query look like?
I think this api takes comma separated values for countries
Nice content sir... Plz make series on mvvm design pattern in android
jaldi he - stay tuned...pehle coroutines and room
Sir I'm facing an error while adding retrofit:
Task :app:checkDebugAarMetadata FAILED
[Fatal Error] retrofit-2.9.0.pom:2:1: Content is not allowed in prolog.
[Fatal Error] converter-gson-2.9.0.pom:2:1: Content is not allowed in prolog.
Change the version to newest version
Sir app bata Sahi rahe hai But Concept ko achhe se Nahi bata rahe hai ki jo predifined method hai uska work kya hai ...
retrofit libary letest version add krne mai jdk mai issue areh hai
Sir with help of your tutorial now I am able to hit api call
But sir on local server or unauthorised ssl url it’s not working. Please sir make video on it
sir please make video on android Complete REST WebService
Sure thing....
before start learning the networking should I know about coroutines??
No
Hi bro, Retrofit ko esi POST API me kese use kare jisme pehle POJO nh milta? like token aur parameters pass krne k baad response aata h.. Thnxxx
Sir , I have problem in addconverter factory (GsonConveterFactory. create()) i. e in create function showing error
Code ka GitHub link dediya kijiye ese kahi atak jaate hain toh samjh nhi aata hai
Check the last video
Sir token kysa use kare ?
i am building this in mvvm and getting null response from api
what should we do when we face error in fetching news
Sir, please kotlin android development tutorial series start krdo.
Kar Diya bro
I am not seeing any error man what to do? It just shows error in fetching details.
Bot bhari only thing you should tell how all things worked together like interface ,objects et al. in the end so that if will be more clearer.
Thank you Talha 😀
Sir Android with kotlin Ka beginner to advanced series start kariye na
Bilkul karenge
how did you thought that page no. should be there?
API response
Sir i have a doubt why you are using constant val in base url instead of companion object?
No standard against this - kuch bhi use kar sakte hai
hi in fragment activity, my app crash. how to fix it!can u help me
What's the error?
I'm getting the response in logcat as
totalResults:38, article:null
Kindly help please
Seems like json parsing for articles is not working
how to hit an API after another APIs onResponse is completed?
Check coroutines video...it will be easier to implement via coroutines
Hi, do you have channel of flutter?
Videos will be uploaded here only... 🤘
why you didn't used coroutines
This series is meant for beginners. Follow our new series - usme sab kuch naya use karenge
14:00 sir yaha ye retrofit ka data type automatically kese aata h mre mughe manually likhna padta h
Control O to get list of Override-able functions.
Bro how to resolve this error
Expected a string but was BEGIN_OBJECT at line 3 column 12 path $.data
check the data and adjust your data classes accordingly. Json convert karne mei error aa rahi hai
bhai ek doubt hai,
i have recieved the data from the api but i want to show it on the activity on device, will you please tell me how to show particular data from the whole data that we have recieved in xml file??
Textview
@@CheezyCode i tried but didn't got it right. can u give me some specific code please !!!
Can you tell me more about the requirements?
@@CheezyCode can i contact u on LinkedIn or anywhere else?
hello sir
If I want Souce Aur ID from the news Api then how to get it like as we have given nested json object thn how to be implement?? I am stuck here
ek aur data class banegi and dusri class mei iske liye reference banega...jab json parse hogi toh wo apne aap populate hojayega...nested objects se farak nahi padega....bas reference shi jagah add karna h...
E.g. Response has Author then 2 classes are required - Response, Author.
data class Response(var author: Author, var count: Int) like this.
@@CheezyCode Kuch kuch smj aaya implement bhi karke dek lia but adaptor m error aa rhi hai
@@CheezyCode News(totalResults=38, articles=[Article(Source=null, author=null, title="Duty To Nation, World": What Vaccine Makers Said On "Smooth" Rollout - NDTV, .......
Yeh source null ku aa rha hai is everything right
Aapne jo kaha tha woh kia
Iss url ko direct access karne pe kya aa rha h?... agar ye null ho skta h toh data class mei nullable bana do
@@CheezyCode Ok Thanks Sir It works Now
where is next video
check the playlist section
sir my enqueue function showing error , i have searched it but didn't get the answer can anybody help
Check the code base on GitHub repo
In my code on error is cone can you solve this
in MainActivity.kt file Unresolved reference: enqueue what do here???
try rebuilding your project and check the retrofit version...code is there on GitHub.com/cheezycode - try comparing your code with it
@@CheezyCode After rebuilding I am getting the same error
C:\Users\cheta\Downloads\life4\app\src\main\java\com\example\life4\MainActivity.kt: (22, 14): Unresolved reference: enqueue
If everything is same - invalidate cache and restart android studio
Hlo sir,
Sir is it compulsory the GSON convertor in the retrofit. Because i am working with the Volley library to fetch data through server(Previously). I am new with this library
Also which is best Retrofit or Volley because i am very confused and basic difference b/w these two
Thank you:)
Go for Retrofit and it will be easier if used with convertors. You need objects to work with. Either you do it manually or let the library do it for you
same as always GitHub link is missing man why??
Check the last video...
@@CheezyCode not able to understand which last video you are talking about
Check the playlist section
Val newsInstance : newsinterface
Can we create instance of interface?