RETROFIT Tutorial (v 2.5.0) | HTTP Client | Android Studio 3.2.1

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

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

  • @caiozowyecamachocabral5413
    @caiozowyecamachocabral5413 5 ปีที่แล้ว +10

    I strongly recommend this video to beginners on retrofit! Love the video!

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

      Its this love of you guys, that motivates me. Thank you, SUBSCRIBE LIKE SHARE.

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

      Yes, you are said correct.

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

      You all prolly dont care but does someone know a method to get back into an instagram account?
      I somehow forgot my password. I would appreciate any tricks you can offer me

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

    First time here and subscribed. The best clean and amazing.....Keep it up

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

    First time here and subscribed. The best clean and amazing. Respect Man.

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

      Thanks and welcome

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

    What a beautiful clean tutorial

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

    Sir, use youtube data api to fetch videos

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

    very straight and clear explanation! Missing Multipart post request.. which is very important in the real projects..! There are cases you might want to post media files and json data..! Anyways.. thanks for your videos!

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

    truely amazing will recommend those who are completely beginners thank you so much sir

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

      It's my pleasure

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

    Wow.. Amazing. Your explanation is very clearly.

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

    Very useful for beginners...Thanks for uploading the videos...

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

    Because of you I understood very clearly thank you so much.

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

    keep doing brw..you are insane in teaching

  • @riteshkumartiwari153
    @riteshkumartiwari153 5 ปีที่แล้ว +4

    Its Great Video Cleared Concepts Easily

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Subscribe like share 😊

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

    API shows only 10 post at a time , how to get another post ??

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

      That depends on api

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

    It really helping and nice tutorial.
    Can We make common place or class i.e. API _PRESENTER for all the calls.enque ?
    It will remove all the seperate calls and calling will occure in a single place..
    What do you think ?
    And yes please add video for the use of Multipart and using Interceptors like Logging Interceptor, HTTP Headers, Authentication, Error Handling.
    Thanks.

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

    How we can send multiple images/files/video using retrofit esp using PartMap function...?

  • @ramkrishnasitap2498
    @ramkrishnasitap2498 5 ปีที่แล้ว

    Nice, short & clear explanation sir

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Subscribe like share 😊

  • @Aaron-patch
    @Aaron-patch 4 ปีที่แล้ว

    I would like to see more explanation on how to create the POJO in step 2. I assumed that you have to create a class matching the JSON response, but you don't mention this. For more complex responses, it would be helpful to know how to create the class.

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

      Agreed will make it

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

    But the data which i am posted is showing on "LogCat" but not showing on "jsonplaceholder.typicode.com/posts". Caan you Help me Please

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

      jsonplaceholder is a TEST API, you cannot actually post there. you need to create your own api for the same, and for that you can watch my REST API playlist using nodes and mongodb
      th-cam.com/play/PLdHg5T0SNpN3EoN3PEyCmPR42Ok_44OFT.html
      Subscribe like share 😊

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

    Really you made it very easy

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

      Subscribe like share

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

    Thanks a lot. I wanted to know this to show a prototype to a client( to access a database record via a rest call from android) . How to show the response on the emulator window itself instead of in the log . I dont know android though i know java very well

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

    You made it a lot easier.

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

    Hello Thank you for the video it is very helpfull
    I just have a problem I get the error do you now why for me ervery things is ok ?
    E/MainActivity: onFailure: Unable to resolve host
    "jsonplaceholder.typicode.com": No address associated with hostname
    Thank you one more time !!!

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

    Sir ApiClient.getClient() returns a retrofit instance but why did u use .create() method afte that

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

      The create method used here is a part of Retrofit Class and basically, by using this we are saying that use the returned instance of retrofit found (New if null or if existed then that) and then call the create method which will then invoke interface class. ApiInterface.class in this case.

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

    can you tell solution for post method
    i am getting timeout error message at end this means that my onResponse is not working
    and any solution for that please

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

      Timeout means ur host is down or is unreachable

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

      @@mafiacodes thankyou very much ,great work . Awesome videos 👍 keep going

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

    what is difference between and

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

      Single entry in json array versus the whole array which has multiple entries

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

      It means a single todo and later means an array of todos

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

      Not a single entry in json array

  • @prabhatsingh1101
    @prabhatsingh1101 5 ปีที่แล้ว

    how buttons automatically taking that particular function without using id?????

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

      Because in the XML itself i hve added the onclick listener

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

      @@mafiacodes yes got it thankxxx :) :)

  • @UnKnown-id7ih
    @UnKnown-id7ih 3 ปีที่แล้ว

    Gson library is used to convert json in java object, Am i right?

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

    Sir by implementing latest retrofit version crashes the app but this version 2.5.0 is working fine? how

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

      What error ur getting

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

      @@mafiacodes So much errors are there starting with ArrayIndexoutofBounds and ending with this
      2020-06-22 11:13:44.707 2007-2714/? E/PhenotypeFlagCommitter: Retrieving snapshot for com.google.android.gms.phenotype failed
      java.util.concurrent.TimeoutException: Timed out waiting for Task
      at auct.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):22)
      at anen.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):23)
      at anen.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):16)
      at anen.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):27)
      at anft.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):5)
      at com.google.android.gms.phenotype.sync.HeterodyneSyncTaskChimeraService.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):63)
      at com.google.android.gms.phenotype.sync.HeterodyneSyncTaskChimeraService.a(:com.google.android.gms@201817022@20.18.17 (040700-311416286):74)
      at adyp.call(Unknown Source:4)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at sji.b(:com.google.android.gms@201817022@20.18.17 (040700-311416286):12)
      at sji.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):7)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
      at spj.run(:com.google.android.gms@201817022@20.18.17 (040700-311416286):0)
      at java.lang.Thread.run(Thread.java:764)

  • @dannygabrielalonsogutierre8473
    @dannygabrielalonsogutierre8473 5 ปีที่แล้ว

    tienes el proyecto ? estoy haciendo un trabajo parecido para la universidad . me podrias ayudar?

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Sí, el proyecto está en Github, y sí, puedo ayudarte

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

    How can I host my videos on server and get a good video player like udemy? Can you suggest me how can I do that please?

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

      for android u can use exoplayer

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

    Nice video, can you pleaseexplain how to add new post or comment to blog from Android app .

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

    Do you have Retrofit Kotlin tutorial? :)

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

      No bro, but you can copy this java code and paste in kotlin file and it will be automatically converted in android studio

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

    only one indian guy tutorial i can watch. and its good

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

    It is really awsm

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

    Hii Sir...Thank you so much for this video. video is very useful for my project

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Like Subscribe Share

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

    Sir please make video on how to store json fetch data in sqlite database I. Android studio

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

      th-cam.com/video/qO56SL856xc/w-d-xo.html

  • @ghalibdelhi11
    @ghalibdelhi11 5 ปีที่แล้ว

    Hi Sir, It would appreciate if you make a video to capture token sent from server and request server for data with the token.

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

    Waawwwwwww..truely awsome

  • @afaquejaya2524
    @afaquejaya2524 5 ปีที่แล้ว

    Really appreciate your work brother most of the error i get solved but one error is there in apiclient.java (. addConverterFactory) is coming with red code instead i had synced the gradle file withe adding gson converter .

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Share ur code on github, coz thr is no reason to get errors.hav u added the proper gson converter.

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

    bro can u plzz , make a video on Firebase push notification, plzz do not say nooooo

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

    Thanks a lot sir

  • @ASHISHKUMAR-jb2fm
    @ASHISHKUMAR-jb2fm 5 ปีที่แล้ว

    sir, can you provide more videos on Retrofit?? please make it sir.

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Like what kind if more videos?

    • @ASHISHKUMAR-jb2fm
      @ASHISHKUMAR-jb2fm 5 ปีที่แล้ว

      @@mafiacodes retrofit methods put,patch, delete

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

    Thank you so much. :)

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

      Subscribe like share

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

    Please make a same video in Kotlin

  • @asifiqbal1261
    @asifiqbal1261 5 ปีที่แล้ว

    How to implement retrofit android token based authentication> Sir, please make a video on it.

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Use token in headers

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

    thank you so much

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

    Sounds like typing on Cherry keyboard :-)

  • @himabindupamu1005
    @himabindupamu1005 5 ปีที่แล้ว

    Great Video sir, iam trying to get the response of all the users with address and other info. Can anyone help me how to get the whole information

    • @mafiacodes
      @mafiacodes  5 ปีที่แล้ว

      Is this ur own API or a free api, may b then i can help, it depends on what the api returns.

  • @Rk-xs7nh
    @Rk-xs7nh 5 ปีที่แล้ว

    are bhai hindi mai bhi bna lo english mai bhut sare tutorial hai

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

    Sir, reveal your face...

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

      Lol yes sometime 😊