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

ความคิดเห็น • 113

  • @Op_Shisode
    @Op_Shisode ปีที่แล้ว +2

    Explaining the each and every line of the code, Make that environment for the learning, his voice flow, everything is just perfect. Thanks man

  • @spacegyaan2171
    @spacegyaan2171 3 ปีที่แล้ว +7

    when you are explaining, your voice seem very calm, simple and easy to understand.

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว +3

      Thank you 🤘

  • @advitiayanand5974
    @advitiayanand5974 2 ปีที่แล้ว

    Bhaiiiiii kya samjhaya hai. Koi bhi aise samjhaega toh shayad library bnane wala bhi ek-aadhi nayi cheez samajh jaye.
    Mad respect bro!

  • @Subratsss
    @Subratsss ปีที่แล้ว

    One of the good video about Retrofit Implementation

  • @jatinvashisht4293
    @jatinvashisht4293 3 ปีที่แล้ว +1

    After searching whole TH-cam I came to know that you also uploaded videos on retrofit. Should have checked the channel before

  • @TheTechnobie
    @TheTechnobie 4 ปีที่แล้ว +1

    One of best series of Kotlin in India.

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว

      Thanks 😊... cheers

  • @mushfiquehossainshafin2329
    @mushfiquehossainshafin2329 11 หลายเดือนก่อน

    I was stuck at HTTP and HTTPS difference. Thank you so much for this explanation. Love from Bangladesh

  • @rohitjakhar6672
    @rohitjakhar6672 4 ปีที่แล้ว

    2 mahine se soch raha tha is topic ko krne ki
    aaj aapne 20 minute me krwa dia
    thank you sir

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว

      Thankyou.. aap logo se motivation milta h.. 😊

    • @rohitjakhar6672
      @rohitjakhar6672 4 ปีที่แล้ว

      @@CheezyCode aur hme aapki video se motivation milta hain💛💛

  • @user-gz7mr2zk8s
    @user-gz7mr2zk8s 4 หลายเดือนก่อน

    Thank you very much Sir.

  • @maheshmahadar4780
    @maheshmahadar4780 3 ปีที่แล้ว +1

    very informative video thanks

  • @anikettikariha8066
    @anikettikariha8066 3 ปีที่แล้ว

    best to the point video ever seen in youtube

  • @mahadevbhumbar9442
    @mahadevbhumbar9442 3 ปีที่แล้ว +1

    thank you sir the way of teaching is very best and easily understandable

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว +1

      Thanks 😊...ho ske Toh share kare...thoda motivation mile

    • @mahadevbhumbar9442
      @mahadevbhumbar9442 3 ปีที่แล้ว

      @@CheezyCode definitely sir

  • @SaadAli-es4px
    @SaadAli-es4px ปีที่แล้ว

    Really appreciate your explanation sir, Thank you!

  • @AKBROS
    @AKBROS 4 ปีที่แล้ว +1

    Thanks for the Video Bhai , Great Content

  • @snehaljoshi2949
    @snehaljoshi2949 2 ปีที่แล้ว

    this i sbest,very easy to follow,thanks bro

  • @sakshamsharma3977
    @sakshamsharma3977 4 ปีที่แล้ว +2

    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

  • @tahersanwar9123
    @tahersanwar9123 ปีที่แล้ว

    very nice explanation🤩🤩

  • @AKBROS
    @AKBROS 4 ปีที่แล้ว +1

    Outro is Op 😁❤️, Apne Khud Record kiya kya bhai.

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว +1

      Yes....Thanks 😊

  • @cgswaggernath8619
    @cgswaggernath8619 2 ปีที่แล้ว

    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 🙏

  • @adityakumarsingh7648
    @adityakumarsingh7648 3 ปีที่แล้ว

    Itna acchaaa explaination thanks sir

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว +1

      Thank you 😊...please share with your friends if possible

    • @adityakumarsingh7648
      @adityakumarsingh7648 3 ปีที่แล้ว

      @@CheezyCode already done sir with all my groups

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว +1

      Thank you so much ❤️

  • @rafelsuha8710
    @rafelsuha8710 3 ปีที่แล้ว

    thnx a lot bro im learning kotlin fr u

  • @nikit8060
    @nikit8060 4 ปีที่แล้ว

    Thank you again ♥️

  • @ravalsahil820
    @ravalsahil820 4 ปีที่แล้ว

    great work sir🙏... keep it up

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว +1

      Thanks...do check the last part of the video...you will like it

  • @lavishgarg4274
    @lavishgarg4274 4 ปีที่แล้ว +1

    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

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว

      Yes...parso Tak news wali complete hojayegi....badi app nahi h ye

  • @shyampratapchauhan7749
    @shyampratapchauhan7749 3 ปีที่แล้ว

    Bro,Coroutine pe video banao jisme acchi tarah batao ki coroutine kyo use karte hai aur kaise work karta hai

  • @priyamprakash1209
    @priyamprakash1209 ปีที่แล้ว +1

    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?

    • @CheezyCode
      @CheezyCode  ปีที่แล้ว +1

      I think this api takes comma separated values for countries

  • @rahulravi1219
    @rahulravi1219 4 ปีที่แล้ว

    Nice content sir... Plz make series on mvvm design pattern in android

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว +1

      jaldi he - stay tuned...pehle coroutines and room

  • @ahmodakramchoudhury4256
    @ahmodakramchoudhury4256 ปีที่แล้ว +1

    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.

    • @cococartoon8272
      @cococartoon8272 ปีที่แล้ว

      Change the version to newest version

  • @ssr.sumit03
    @ssr.sumit03 ปีที่แล้ว

    Sir app bata Sahi rahe hai But Concept ko achhe se Nahi bata rahe hai ki jo predifined method hai uska work kya hai ...

  • @sifasiddiqui8325
    @sifasiddiqui8325 ปีที่แล้ว

    retrofit libary letest version add krne mai jdk mai issue areh hai

  • @vikashkumar3606
    @vikashkumar3606 ปีที่แล้ว

    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

  • @ajaypawar958
    @ajaypawar958 4 ปีที่แล้ว +1

    sir please make video on android Complete REST WebService

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว +1

      Sure thing....

  • @rishabjain2634
    @rishabjain2634 2 ปีที่แล้ว

    before start learning the networking should I know about coroutines??

  • @Sweetcracks
    @Sweetcracks 4 ปีที่แล้ว

    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

  • @abhinavanand9798
    @abhinavanand9798 2 ปีที่แล้ว

    Sir , I have problem in addconverter factory (GsonConveterFactory. create()) i. e in create function showing error

  • @komal7447
    @komal7447 3 ปีที่แล้ว +1

    Code ka GitHub link dediya kijiye ese kahi atak jaate hain toh samjh nhi aata hai

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Check the last video

  • @adityaroy1851
    @adityaroy1851 2 ปีที่แล้ว

    Sir token kysa use kare ?

  • @mformobileapps
    @mformobileapps 2 ปีที่แล้ว

    i am building this in mvvm and getting null response from api

  • @aakansharai8774
    @aakansharai8774 ปีที่แล้ว

    what should we do when we face error in fetching news

  • @brijeshchauhan5599
    @brijeshchauhan5599 3 ปีที่แล้ว

    Sir, please kotlin android development tutorial series start krdo.

  • @KajalSharma-it6ni
    @KajalSharma-it6ni 3 ปีที่แล้ว

    I am not seeing any error man what to do? It just shows error in fetching details.

  • @talhashaikh1435
    @talhashaikh1435 3 ปีที่แล้ว

    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.

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Thank you Talha 😀

  • @hardcodeandroid
    @hardcodeandroid 4 ปีที่แล้ว

    Sir Android with kotlin Ka beginner to advanced series start kariye na

  • @Piya_Journal_Unfolded
    @Piya_Journal_Unfolded 2 ปีที่แล้ว

    how did you thought that page no. should be there?

  • @piyushmodi6484
    @piyushmodi6484 2 ปีที่แล้ว

    Sir i have a doubt why you are using constant val in base url instead of companion object?

    • @CheezyCode
      @CheezyCode  2 ปีที่แล้ว +1

      No standard against this - kuch bhi use kar sakte hai

  • @sashtikasankarananth1793
    @sashtikasankarananth1793 ปีที่แล้ว

    hi in fragment activity, my app crash. how to fix it!can u help me

  • @abhinavpandey6207
    @abhinavpandey6207 2 ปีที่แล้ว

    I'm getting the response in logcat as
    totalResults:38, article:null
    Kindly help please

    • @CheezyCode
      @CheezyCode  2 ปีที่แล้ว

      Seems like json parsing for articles is not working

  • @roushanali1918
    @roushanali1918 2 ปีที่แล้ว

    how to hit an API after another APIs onResponse is completed?

    • @CheezyCode
      @CheezyCode  2 ปีที่แล้ว

      Check coroutines video...it will be easier to implement via coroutines

  • @amanjotkaur2332
    @amanjotkaur2332 4 ปีที่แล้ว

    Hi, do you have channel of flutter?

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว

      Videos will be uploaded here only... 🤘

  • @spacegyaan2171
    @spacegyaan2171 3 ปีที่แล้ว

    why you didn't used coroutines

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      This series is meant for beginners. Follow our new series - usme sab kuch naya use karenge

  • @Dukhsiofficial
    @Dukhsiofficial 4 ปีที่แล้ว

    14:00 sir yaha ye retrofit ka data type automatically kese aata h mre mughe manually likhna padta h

    • @magmacodes9143
      @magmacodes9143 3 ปีที่แล้ว

      Control O to get list of Override-able functions.

  • @chrizlove1340
    @chrizlove1340 3 ปีที่แล้ว

    Bro how to resolve this error
    Expected a string but was BEGIN_OBJECT at line 3 column 12 path $.data

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว +1

      check the data and adjust your data classes accordingly. Json convert karne mei error aa rahi hai

  • @sahilgupta-ck7if
    @sahilgupta-ck7if 3 ปีที่แล้ว

    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??

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Textview

    • @sahilgupta-ck7if
      @sahilgupta-ck7if 3 ปีที่แล้ว

      @@CheezyCode i tried but didn't got it right. can u give me some specific code please !!!

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Can you tell me more about the requirements?

    • @sahilgupta-ck7if
      @sahilgupta-ck7if 3 ปีที่แล้ว

      @@CheezyCode can i contact u on LinkedIn or anywhere else?

  • @arpitkhandelwal2999
    @arpitkhandelwal2999 3 ปีที่แล้ว

    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

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      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.

    • @arpitkhandelwal2999
      @arpitkhandelwal2999 3 ปีที่แล้ว

      @@CheezyCode Kuch kuch smj aaya implement bhi karke dek lia but adaptor m error aa rhi hai

    • @arpitkhandelwal2999
      @arpitkhandelwal2999 3 ปีที่แล้ว

      @@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

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Iss url ko direct access karne pe kya aa rha h?... agar ye null ho skta h toh data class mei nullable bana do

    • @arpitkhandelwal2999
      @arpitkhandelwal2999 3 ปีที่แล้ว

      @@CheezyCode Ok Thanks Sir It works Now

  • @swapnilnangare119
    @swapnilnangare119 2 ปีที่แล้ว

    where is next video

    • @CheezyCode
      @CheezyCode  2 ปีที่แล้ว +1

      check the playlist section

  • @drop009
    @drop009 3 ปีที่แล้ว

    sir my enqueue function showing error , i have searched it but didn't get the answer can anybody help

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Check the code base on GitHub repo

  • @chetanprajapati3085
    @chetanprajapati3085 3 ปีที่แล้ว

    In my code on error is cone can you solve this
    in MainActivity.kt file Unresolved reference: enqueue what do here???

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      try rebuilding your project and check the retrofit version...code is there on GitHub.com/cheezycode - try comparing your code with it

    • @chetanprajapati3085
      @chetanprajapati3085 3 ปีที่แล้ว

      @@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

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      If everything is same - invalidate cache and restart android studio

  • @arpitkhandelwal2999
    @arpitkhandelwal2999 4 ปีที่แล้ว

    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:)

    • @CheezyCode
      @CheezyCode  4 ปีที่แล้ว +2

      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

  • @yogeshbansal410
    @yogeshbansal410 3 ปีที่แล้ว

    same as always GitHub link is missing man why??

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Check the last video...

    • @yogeshbansal410
      @yogeshbansal410 3 ปีที่แล้ว

      @@CheezyCode not able to understand which last video you are talking about

    • @CheezyCode
      @CheezyCode  3 ปีที่แล้ว

      Check the playlist section

  • @krishnacreation9211
    @krishnacreation9211 ปีที่แล้ว

    Val newsInstance : newsinterface
    Can we create instance of interface?