Android Retrofit Example | JSON API Retrofit Library Working Tutorial (in Hindi)

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • In this video, we will fetch JSON data from a blog using Retrofit library. We have covered step by step a simple retrofit example to fetch data from the server. Blogger API is used to show articles in an app. JSON feeds of the blog are shown in Cardview inside recylcerview. This video is part 6th of our new android development tutorial series for beginners.
    Follow along - everything is explained in Hindi.
    Topics Covered -
    Set up of blog API (Blogger API is used)
    Create interface for retrofit
    Interface Implementation using Retrofit
    GSON library is used as convertor - GSON Converter Factory
    JSON to POJO is done using JSON Scheme To POJO
    Retrofit builder with Singleton Pattern
    Full working example of Retrofit
    Volley Tutorial-
    • Android Volley Library...
    Blogger and API setup-
    • Android App - JSON Fee...
    Recycler View Playlist -
    • RecyclerView In Androi...
    Beginner series in Android Playlist-
    • Android Tutorials Step...
    Learn all this in Hindi (हिंदी में )
    For more info - Visit below link
    www.cheezycode.com
    We are social. Follow us at -
    Facebook - / cheezycode
    Twitter - / cheezycode

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

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

    एक नंबर भाई... कितने सरल तरिके से बता दिया

  • @e-tax646
    @e-tax646 4 ปีที่แล้ว

    Sir...aapka video bohot achcha lagta he.....aapne full details me sumjate he....thank you sir

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

    भाई आप कहि भी बोलने में अटकते नही। इस से पता चलता है आप कितने अनुभवी हो यार।। best teacher...

  • @sunilkeshri8944
    @sunilkeshri8944 6 ปีที่แล้ว

    very very efficient tutorial . Ek jara sa v bakwaas nahi .You are really a nice youetuber .

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

    Thanks for the proper explanation and also make videos on POST, PUT, DELETE and HEAD.

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

    Am not Indian but Oops this had made it for mi thumbs up bro

  • @prafulsahu3869
    @prafulsahu3869 7 ปีที่แล้ว

    your way of explanation is very nice.....and this video is very helpful for me..thank you

  • @shaikhaaves6645
    @shaikhaaves6645 6 ปีที่แล้ว

    Bhai.....
    Thank-You so Much
    ek video volley ki bhi banao please!!!!!
    your tutorials are best especially in hindi!!!!!

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

      Already there in the playlist

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

    such a greatful video sir it is very helpful for me

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

      Thanks brother.. keep supporting us. 😊

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

    Hey sir,
    Thanks for the awesome videos. I request you to please upload more videos on Android and payment gateway integration.

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

    Sir your way of teaching 👌👌👌👌🙏🙏🙏🙏🙏🙏🙏🙏

  • @rakeshprajapat78122
    @rakeshprajapat78122 6 ปีที่แล้ว

    thanks for made such types of videos on retrofit i request you please make more videos on retrofit and please explain all thing which through we get the data put and header and use such type of annotations in projects and it could be cleared all confusions and more things so i hope that accept my request and please make more videos on retrofit and with new contents.Thank you.

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

    U explained us in best way

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

    It was really helpful in understanding every single concept about Retrofit.
    Thank you so much. You have my respect bro.

  • @SahilTheExplorer
    @SahilTheExplorer 5 ปีที่แล้ว +11

    Sir plz make a video on retrofit POST method to send data to rest api.. only you can make me understand.. thanks for all the knowledge 🔥🔥🔥

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

    Thank you sir , valable information about Url path

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

    Sir ager hamaray pass ek long api ho or aus me 2 ya 3 hazar posts hon, tu aus ki pojo classes kaise banay ga ? kun wo error de deta ha k your input was too long :( Plz help.

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

      schema chaiye bas...jo json paste kar rahe ho usme data kam karlo.

  • @kalpeshchandora6294
    @kalpeshchandora6294 6 ปีที่แล้ว

    Worth to watch

  • @ahsansyed4146
    @ahsansyed4146 6 ปีที่แล้ว

    bhai koi live project ya Application develop karonga m to yahi cheezain follow karni hoti hain ? for developing an app? ya ye sirf beginners k lia hai ye series ? softwar houses and production houses m alag trhan se kam hota hai ?

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

      Basics yehi rehte h... structure change hota h...mvp architecture follow karte h kaafi projects mei.. structured hota h project...rxjava, dagger2 aur kaafi cheeze use hoti h

    • @ahsansyed4146
      @ahsansyed4146 6 ปีที่แล้ว

      @@CheezyCode thanku bhai quick reply k lia . . . Bhai next video may apny regular expressions use kia hai, agye ap is ka koi alternate use kara hai ya yahi use krni pary ge mj ko ?

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

      Jsoup is the standard

  • @AbhishekNigam
    @AbhishekNigam 6 ปีที่แล้ว

    You explained very well

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

    Bhai Retofit sikhne k liye pehle Rest API k baare mein pdhna zruri hai ? Actually am new to android and learning concepts, am looking for an intership in android, so fresher point of view se internship lene k liye deep mein pta hona chaiye ? ya sirf Retrofit enough hai

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

      Retrofit laga loge dekh dekh ke par concepts clear nahi honge - API ke concepts required hai - uske baad retrofit easy lagegi...
      - HTTP Methods (GET/POST/PUT/PATCH/DELETE)
      - HTTP Headers (Request/Response)
      - How to pass tokens for authorizations or some APIs have keys
      - Little knowledge on how to use Postman.
      Latest series hai API pe th-cam.com/play/PLRKyZvuMYSIMjYhIwc6vP2eVb9JI6Phsv.html
      Binge watch karlo - jyada der nahi lagegi concepts clear hojayege

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

      @@CheezyCode Ye Playlist Android prospective se relevant hai bro ?

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

    Thanks for video

  • @SolankiMehuln
    @SolankiMehuln 6 ปีที่แล้ว

    Wow. Great explanation. Very helpful.

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

    For an example we have a website and an android application so a customer is sign up into the website but after sometime he/she download our app and login into the application but he is not registered, so basically I have a question that how can we sync data website and the mobile application...
    When I search on Google that I got a result that you should a RESTFUL API, but I can't understand that how can I implement it because in youtube everyone build an android application through the firebase Which is much expensive comparison to other hosting provider like bluehost, hostinger etc..
    Please Guide me as a mentor, how can I solve this problem????

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

      For your core functionality you need to expose endpoints which is like restful service. Every crud endpoint is required for full functionality.
      Once your api is ready - you can integrate with your android app. No need to use firebase if you don't want to. For notifications - you need to firebase. But for functionality related to your app you need to follow this process.

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

      Let me take one example - I have website which shows you hotels and do some bookings as well. It is a full system that has all the crud operations you can think off.
      Now on top of that system which is your web application - you will be creating a layer of restful API that exposes a way for you to store and fetch data.
      Android app will be created that supports signup and sign in feature with user based crud operations. Now you fetch the hotel results - get operation of that API

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

      I hope that answers your question

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

      @@CheezyCode Thanks for your positive response can u please suggest me some tutorial for better understanding

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

      For whole thing you won't get any tutorial I guess. You can learn the things in chunks - first learn how to create APIs either via node Js, Python or .Net etc. Then go for Android integration

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

    Hello sir,
    I really like your all education video your video really help us.
    Please make video on rxjava rxandroid ,duggar
    If you already created video on above topic then please send me link.

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

    It's possible to retrieve data using volley library?? In same project (Blogger API)...

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

      Same logic h just fetching ka logic ka change kardo

  • @ravipatel-dv3gw
    @ravipatel-dv3gw 7 ปีที่แล้ว

    nice tutorial sir, please add more demo on BroadCast Receiver, Content Provider etc.

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

    Thankyou Bhai

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

    login form with MS SQL Server any retrofit tutorial available ? if yes please provide link . if not please make a video Android Login form Database MS SQL Server using retrofit.

  • @arvindthakor2782
    @arvindthakor2782 6 ปีที่แล้ว

    Awesome and Very Helpful Tutorials Ever...Sir

  • @WePlusYou
    @WePlusYou 7 ปีที่แล้ว

    it great sir.......superb

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

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

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

      Old series bro...you can follow the same steps to access the api endpoints. Blogger API provides number of endpoints.

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

      @@CheezyCode thanks for reply, I have searched many sites and videos but I did not find any proper information about adding new post.

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

      Blogger API pe he milega solution...but app se post karne mei mehnat bahot lagegi...images and formatting ke liye

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

      @@CheezyCode k thanks...i will try

  • @satyamkumar-ri5lk
    @satyamkumar-ri5lk 7 ปีที่แล้ว +1

    sir awesome concept....thnx sir

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

      Thank you. We are glad you liked it. Please subscribe and let us know if you have any suggestion.

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

    @POST("/GetLocation")
    Call getLocation();
    I create a method like this. I have an API which works like when we post a request it returns something in response, which we further use.
    But In my case when I call this method it falls into Onfailure().
    I want to know is it necessary to pass a parameter in method in case of Retrofit?

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

    Sir, i create an object to store the data of response.body(). But when it came out of the onResponse method the object becomes Null. Can you please tell me why it happening and how i can fix it...

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

      Logcat mei response.body ko log karao ..shayad api data nahi de rahi

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

      @@CheezyCode Sir, Api data de rha h check kiye h debug karke or object me bhi store ro raha par woh onResponse method ke bhar object me data Null ho ja raha h

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

      Onerror check karo... parsing mei error na ho...use try catch as well

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

      Kuch mila?

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

    Sir app jo retrofit ka code kiye ho mainactivity ke under wo app send kr skte hai

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

      Type karlo...chota sa he h

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

    Brother hum api kisi website use kar sakate hai

  • @LS-ck5js
    @LS-ck5js 5 ปีที่แล้ว +2

    Thank you so much for this video!
    i'm a little stuck as i am using my own api, and it doesnt generate an items.java. How do i go about fixing this?

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

      I am having the same issue. If you have sorted it out please help me out too.

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

      Please check the code on GitHub.com/CheezyCode/techiedesi if you are using blogger.

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

      Thank you! Hope to see some more interesting video's on Android

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

      Yes please check the new Kotlin videos. Android will be all Kotlin now

  • @pawandubey9666
    @pawandubey9666 6 ปีที่แล้ว

    Bro mujhe thunkable pe ek problem aarhi he kya aap us problem ka solution bataoge mene apne blog site ka application banaya par jab mene usme back or exit karne ka option dala to waha app export nhi ho raha he or kuch error bata raha he

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

      I have never seen thunkable or worked with it

  • @gauravgupta3794
    @gauravgupta3794 7 ปีที่แล้ว

    very nice tutorial, it helped me , can you tell me how to add multiple header??

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

    Thanks For the great video buddy it cleared many douts

  • @manojthayil7836
    @manojthayil7836 6 ปีที่แล้ว

    I have used google places api. It is hitting the server and I get JSON response on any web browser but when I used the same using retrofit onfailure method is getting called.Internet permission is set. Could you please help me out why onfailure method is getting called?

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

      check the exception - it will help you get the exact message.

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

    Hi dear, awesome videos. Learnt alot from all your videos. I would really appreciate if you can make some more videos about retrofit and how to implement infinite scroll in wordpress api, any hint will be appreciated. I am a beginner and because of you I got at least confidence to do Android development in Java.

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

      same logic needs to be applied. Just check the infinite scroll video.

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

    what if we have api running on localhost ? do we have to provide api key of it also?

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

      API key is a way to authenticate api users. if your api has this feature then you need it otherwise don't

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

    Hey..Can you please tell me ..How to send firebase notification by calling API using retrofit ?

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

      Firebase Rest API + UserId

  • @ahsansyed4146
    @ahsansyed4146 6 ปีที่แล้ว

    agr m ksi or web se data la raha hun except thi Blogger side. . to m phr knsi Api key dalonga ?

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

      Dusro ka blog access nahi Kar skte

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

      Dusro ka content kaise use karloge

    • @ahsansyed4146
      @ahsansyed4146 6 ปีที่แล้ว

      @@CheezyCode bhai dost ki web app hai uska data hai, or balky usny mjko json format m File bhe di hai ab usko use kesy karo thora properly smj nai ara

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

      Usse key manglo agar dost h toh

    • @ahsansyed4146
      @ahsansyed4146 6 ปีที่แล้ว

      @@CheezyCode yani har web ki key hoti hai ? uska data access krny k lia ? or Api key ki jaga knsi key dalon ? apni google Api key dalon ya wo bhe usy ln ? or bhai mj ko is bar user ko login krwa kr uska data bhe show krwana hai? to ab m kia additional code karoga user login krwa kr usko, uska respective Data dekhny k lia ?

  • @uzairmughal4802
    @uzairmughal4802 7 ปีที่แล้ว

    is it possible to use same example if we are accessing web service from .NET web server

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

    In my case Data is not fetching from Api but "Success " Message shows in My app.
    Pls brother help me

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

    Hey guys just use "PostFile" on the place of PostList. PostList is nothing but just a class which we copied in our project from json to pojo website in his case the file name is PostList but in my(maybe in your too) case it is PostFile.

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

    very good video bro.
    loved it
    ps: you are not supposed to share api key with anyone its illegal

  • @santa123232
    @santa123232 7 ปีที่แล้ว

    hi dear I made an android app and i want to add a feature in this that " if i put something new on my blog/site it send a new notificaton on mobile as we see a new notification on our mobile if we use whats upp same like this i want to do" can you please help me.

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

      +AMIT KUMAR please check our Playlist section. We have a video for the same. Everytime you publish an article on your blog, you can send a notification to your users that a new post has arrived. It is a series of videos covering many things. Cheers

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

    Why to use that pojo thing if we are providing url to our application.
    Plz reply

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

      Url returns json. Application works with Java objects. That json needs to converted to Java objects so that application can work with them. To create objects you need classes. So POJO

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

      So to display that data in recycler view we might not need that.
      Love your video on point.👍👍

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

    Very Helpful

  • @gamexjgamer951
    @gamexjgamer951 7 ปีที่แล้ว

    Kya koi bhi custom data recycler me dikhane ke liye web sarvices pe dhalana padega ?

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

      Nahi locally object create karke bind kardo

    • @gamexjgamer951
      @gamexjgamer951 7 ปีที่แล้ว

      Cheezy Code sir object creata karke bind kaise karte he is pe ek video banado please aur aapka contact numbar do

  • @FunnyFukrey
    @FunnyFukrey 6 ปีที่แล้ว

    sir can you tell me how put navigation drawear for all activity

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

      Create a base activity and inherit that in other activities

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

    Excel ki file se data fetch krke recycler view me kese view kr skte hain?

  • @androiddel7965
    @androiddel7965 6 ปีที่แล้ว

    nice vedio..i want to creat a grid view by using retrofit library..help me

  • @manojthayil7836
    @manojthayil7836 6 ปีที่แล้ว

    Sir when u used volley library u havnt used something like Get and haven't made interface to access json but why in this video?

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

      This is how libraries work. Things are different in every library. This is how retrofit works. Its easy and scalable to have an interface. This makes it clear on the functionality we are using from the API.
      API might expose 100 methods but in our interface we define what we need. So our app might use only 10 and it is clearly visible

  • @yaroslavkatrenko7433
    @yaroslavkatrenko7433 6 ปีที่แล้ว

    Is this api call will cause memory leak when rotate screen or leave Activity, don't you?

  • @Ashishsingh-wo9wz
    @Ashishsingh-wo9wz 5 ปีที่แล้ว

    Sir Please Make the Video in Retrofit each topic like Caching Manage and when is the pass the Header data and Query.

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

    Sir more videos on retrofit concept in detail if possible.I tried to find on TH-cam but couldn't find the best ones.

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

      Yes sure...will come up with more examples.

  • @akhileshsharma5702
    @akhileshsharma5702 6 ปีที่แล้ว

    Hi! can you please do one video on Retrofit and Logan square

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

      You just need to replace the convertor that retrofit uses. I have used GSON in this series. Use Logan Square retrofit convertor
      github.com/mannodermaus/retrofit-logansquare

    • @akhileshsharma5702
      @akhileshsharma5702 6 ปีที่แล้ว

      hi...thanks a ton
      :)

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

    super.... first comment

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

      Thank you, brother. Keep coding, Keep sharing.

    • @jiteshsharma4692
      @jiteshsharma4692 7 ปีที่แล้ว

      Cheezy Code. can you provide Android related testing. Selendroid or appium video

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

      I will update about this. I have been trying Appium and learning myself from last few months. Not an automation guy but will try if I learned something significant.

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

      Cheezy Code. thank you sir... have a great time ahead.. wish you all the best for your upcoming work. we all guys my team love you so much.

  • @rohitmanohar2733
    @rohitmanohar2733 6 ปีที่แล้ว

    Hi , Can u explain how to post XML request through Retrofit and handle XML Responce

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

      Just use the XML convertor. It is easy. Just check their documentation.

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

    Mast bhai

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

      Thank you so much. Cheers from CheezyCode.

  • @narendrachoudhary7502
    @narendrachoudhary7502 6 ปีที่แล้ว

    super lecture but sir i have problem is upload image in retrofit using multipart

  • @codeWithSalmanKhan
    @codeWithSalmanKhan 6 ปีที่แล้ว

    Hello Bro, Nice tutorial, I appreciate.
    Could you please tell us how you enable console debugger option? It's too difficult to see server response.

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

      Just log the info using log.d

    • @codeWithSalmanKhan
      @codeWithSalmanKhan 6 ปีที่แล้ว

      @@CheezyCode Thanks for quick response.
      I found it

  • @adroitpersonn2356
    @adroitpersonn2356 7 ปีที่แล้ว

    @SerializedName is not coming automatic , I added retrofit and gson library in gradle file.. ?, also same thing happened with @GET or @POST

  • @rishabjain4698
    @rishabjain4698 7 ปีที่แล้ว

    Hello Sir, please make some video on elasticsearch for android

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

    I am facing below error while adding retrofit library in android studio 1.5.1.
    Error:(8, 0) Gradle DSL method not found: 'implementation()' Possible causes:The project 'RetrofitMy Application' may be using a version of Gradle that does not contain the method.
    I googled in order to resolve above issue but did not find yet ,any one can help me

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

    how to dynamically use Api address in weather app

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

    Suppose a request like as:
    Single fetchAllNotes();
    Using list for object of array, suppose there are single row just as object. How to solve this type of problem ?
    Because I am not sure there is single row or multiple row return from api. How can I solve this problem?

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

    Bhai plz 3rd party library waaali videos kee 1 alag playlist banaao jaisy baaki logo nay kyawaa hai...

  • @GauravKumar-lb6ze
    @GauravKumar-lb6ze 6 ปีที่แล้ว

    in this json there are only two object.In situation where we have nearly infinite object,how to deal with it.

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

      You just need to provide sample json.

    • @GauravKumar-lb6ze
      @GauravKumar-lb6ze 6 ปีที่แล้ว

      I got struck,Every key&value pair is coming out to be null in retrofit(using debugger to know that).What should i do now?

    • @GauravKumar-lb6ze
      @GauravKumar-lb6ze 6 ปีที่แล้ว

      this is the formatted json format i was extracting properties(all the key like mag, place,etc is coming out to be null.
      {
      "type":"FeatureCollection",
      "metadata":{ + },
      "features":[
      { + },
      { + },
      { + },
      { + },
      {
      "type":"Feature",
      "properties":{
      "mag":5,
      "place":"155km SW of Kavieng, Papua New Guinea",
      "time":1538704595820,
      "updated":1538705708040,
      "tz":600,
      "url":"earthquake.usgs.gov/earthquakes/eventpage/us1000h7di",
      "detail":"earthquake.usgs.gov/fdsnws/event/1/query?eventid=us1000h7di&format=geojson",
      "felt":null,
      "cdi":null,
      "mmi":null,
      "alert":null,
      "status":"reviewed",
      "tsunami":0,
      "sig":385,
      "net":"us",
      "code":"1000h7di",
      "ids":",us1000h7di,",
      "sources":",us,",
      "types":",geoserve,origin,phase-data,",
      "nst":null,
      "dmin":2.584,
      "rms":1.26,
      "gap":82,
      "magType":"mb",
      "type":"earthquake",
      "title":"M 5.0 - 155km SW of Kavieng, Papua New Guinea"
      },
      "geometry":{
      "type":"Point",
      "coordinates":[
      149.6856,
      -3.4337,
      10
      ]
      },
      "id":"us1000h7di"
      },
      {
      "type":"Feature",
      "properties":{
      "mag":5.3,
      "place":"23km WSW of Checca, Peru",
      "time":1538703961210,
      "updated":1538765682975,
      "tz":-300,
      "url":"earthquake.usgs.gov/earthquakes/eventpage/us1000h7da",
      "detail":"earthquake.usgs.gov/fdsnws/event/1/query?eventid=us1000h7da&format=geojson",
      "felt":1,
      "cdi":5,
      "mmi":null,
      "alert":null,
      "status":"reviewed",
      "tsunami":0,
      "sig":433,
      "net":"us",
      "code":"1000h7da",
      "ids":",us1000h7da,",
      "sources":",us,",
      "types":",dyfi,geoserve,moment-tensor,origin,phase-data,",
      "nst":null,
      "dmin":3.657,
      "rms":1.34,
      "gap":60,
      "magType":"mww",
      "type":"earthquake",
      "title":"M 5.3 - 23km WSW of Checca, Peru"
      },
      "geometry":{
      "type":"Point",
      "coordinates":[
      -71.6018,
      -14.5368,
      10
      ]
      },
      "id":"us1000h7da"
      }
      ],
      "bbox":[
      -71.6018,
      -42.637,
      10,
      169.6163,
      -3.4337,
      13.17
      ]
      }

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

    Thank for this video

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

      Thank you for your comment. Please let us know if have any suggestions.

    • @indresh_malviya
      @indresh_malviya 7 ปีที่แล้ว

      Yes i told you in previous video, "upload video on shared preference."

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

      +Indresh Malviya I will cover in this series. Cheers. 👍

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

    Sir recycler view m jaha post show hote h blog k tab page Ko down karne per app close ho rha h
    Please help

  • @vrushangdesai2813
    @vrushangdesai2813 6 ปีที่แล้ว

    Thanks a lot brother :) love you ! ,pls share how do i use async http to parse json instantaneouly ? i am working wtih microsoft translation api

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

      Just use retrofit to call the API. Instantaneous is not possible. You go to those servers to fetch the data which takes time.

  • @karanveersingh-bj5nh
    @karanveersingh-bj5nh 5 ปีที่แล้ว

    Hi.....
    How to create login activity with HTTP post request and how to pass username and password parameter in JSON format can you please help me for this

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

    bro json to pojo convert krke project m kyu paste ki h inka too use hi ni h

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

      Bro aage ki videos dekho

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

      @Cheezy Code Okay😀..but bro m TMDB ki api use kr ra hu ni chl ri h

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

    0 dislikes.👌👌👌

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

    what is use of expose in retrofit ?

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

      By having this attribute - you tell that this property should be serialized or deserialized

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

      @@CheezyCode what is meaning of serialized and deserialized ?

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

      In simple words - Object ko aise format mei convert kardo jise wo kahi bhi save kar skte ho...baad mei jab use karna hoga toh deserialize kar lenge

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

      @@CheezyCode Thanks Buddy For Your Help

  • @rushic24
    @rushic24 6 ปีที่แล้ว

    Sir please please help me using retrofit for woocommerce

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

      Just follow the same steps

    • @rushic24
      @rushic24 6 ปีที่แล้ว

      @@CheezyCode it has consumer_key and consumer_secret

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

      So use the same to get the data. Concept is same

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

    thanks

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

    My json data looking different then yours it doesn't have image links or post text. It does only have post links ,even though i followed ur tutorial step by step

  • @himanshulimbachiya1276
    @himanshulimbachiya1276 7 ปีที่แล้ว

    Bro muje retrofit se api call karani hai but without Listview and Recyclerview . or men kiya hai log me b data print horha hai hai but aab me data display kaise kara u pls help me

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

      +HIMANSHU LIMBACHIYA access your views inside success call back and set the data.

    • @himanshulimbachiya1276
      @himanshulimbachiya1276 7 ปีที่แล้ว

      bro onresponse me b toast print kiya use me successfully data aarha hai but aabe wo deta me display kaise karu

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

      +HIMANSHU LIMBACHIYA textview.setText

    • @himanshulimbachiya1276
      @himanshulimbachiya1276 7 ปีที่แล้ว

      muje api call kar ni hai ManiActivity p so kaise karu

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

    Thanks bro

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

      Thank you so much. Another video in the pipeline. Stay tuned.

  • @ArtistDhruv
    @ArtistDhruv 6 ปีที่แล้ว

    retrofit2.call already present error please help me with this error while installing

  • @Deev.eloper
    @Deev.eloper 4 ปีที่แล้ว

    UNABLE TO CREATE CALL IN RETROFIT 2 , help please

  • @gagan4881
    @gagan4881 6 ปีที่แล้ว

    Sir when i put my API key and my blog id and then open that link i get an error saying key expired and bad request.... Pls help sir

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

    Wordpress website ke liye kese hoga ye sab??

  • @bishalram481
    @bishalram481 7 ปีที่แล้ว

    Thanks

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

    Hey there someone.
    i have a problem in my code
    My onResponse method not working
    My code was accurate not any issue but here's the problem
    Please help me

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

      What's the error

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

      @@CheezyCode i create the simple pattern Call Back onResponse and onFailure but when i run my code its faild. Run only onFailure method

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

      @@CheezyCode i see my code over 10 times but here's a no mistake or code error

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

      Brother i see everywhere but i can't find that solution .. can you please help me.? My onResponse method not work when the api was called it's move to failure method.. i don't know how because i check my code many times and here's no error in my code.

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

      @@CheezyCode Brother i already post this question on stack overflow please response me (stackoverflow.com/questions/57349610/retrofit-response-failed-everytime)

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

    sir there are only 10 post fetching.how to get all posts

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

      Check the full playlist on this. Covered custom paging to fetch all posts

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

    Hello Sir blogger ke ilwa ager kisi aur website se data fetch kerna hoto kese kerege?

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

      Wordpress ka cover karenge. Ek separate video hoga jisme wordpress ki api aur other ideas dekhenge ki kaise implement karte h. Stay tuned

  • @saurabhpandey3044
    @saurabhpandey3044 6 ปีที่แล้ว

    Please please help me
    I did not get any item .Java for my blog
    Please help me

  • @souravthakur6631
    @souravthakur6631 7 ปีที่แล้ว

    Sir hamsa unable to open this app ara hai kya kru

  • @rahul_bali
    @rahul_bali 7 ปีที่แล้ว

    where is the getPostList() function implemented ..?

  • @bablukumar-mc1xb
    @bablukumar-mc1xb 6 ปีที่แล้ว

    CallpostList=BlogeerApi me getservice ka error aa raha ise kese solve karenge get service red ho rha hai

  • @muhammadzohaib2878
    @muhammadzohaib2878 6 ปีที่แล้ว

    java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List com.example.mza.retrofit.PostList.getItems()' on a null object reference how to solve this error??? yeh kue arha hai post adapter show nai ho raha

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

      Data nahi aa rha...check logcat

    • @muhammadzohaib2878
      @muhammadzohaib2878 6 ปีที่แล้ว

      @@CheezyCode yes brother .ab agya hai.. you are doing brilliant job. lkn ik question hai hum kolin aur java ko aik sath kaisy use kr sakty hai iss par koi chota sa project hona chaiyee.kotlin ka use with java. please market me bohut in hu gyi hai kotlin.

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

      Ok

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

      @@muhammadzohaib2878 bro mry pass bhi yehi error a rha h apne isko solve kasy kia.

  • @wassaufkhalid8593
    @wassaufkhalid8593 6 ปีที่แล้ว

    how to do it for wordpress

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

      Check the playlist section