Android Retrofit - 02 - Simple Example of Retrofit

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

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

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

    THANK YOU

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

    What the man you are...!!!!.. really awesome tutorial. Everything is working amazing... Thank you ao much sir..

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

    Awesome video......Thanks for sharing....

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

    u make the android programming simple with clear explanation of all concepts.once again nice video from u thank u sir

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

    Sir undoubtedly you are incomparable. It would be much better to understand (to all lazy leaners like me) if you provide your lesson code through github. By the by thank you so much..

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

    So clear and helpful tutorial
    thank you so much sir.

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

    everything explained very well
    Awesome tutorial
    I guess as per Java code convention, variables must declare in camel case like name instead of Name, email instead of Email
    But you explained the Serialised name very well by using Name not name

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

    Nice video 👌 🔥

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

    You r just too good thanks ... kindly make some tutorials retrofit with realm

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

    Nice video sir.
    I have a question. Why you use POST instead of GET? As far as I know to show data we use GET.

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

    very nice very clear and easy to understand video tutorial the best tutor better than @slidenurd

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

    very good tutorial..thanks

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

    thanks Prabeesh!! Nice moustache!! Grate vid!!!

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

    very good tutorial, thanks!

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

    Thanks for the amazing tutorial!

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

    Thank you, as usual, great tutorial.

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

    Liked ,how We can give criteria to api .eg. product_code ?

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

    Thanks for sharing your knowledge

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

    very very nice sir.... thanksss..

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

    excellent video, thanks

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

    Can we only use php or there is some alternative

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

    Excellent! Thank You

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

    Thanks you for this tutorial.. actually i have been using only OKHTTP for REST API calls, but I realized that using retrofit I do not parse the JSON which comes in right? By implementing this methods I really stop writing parse JSON method in my apps.
    Thanks you.

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

    woow...nice tutorial...

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

    Nice tutorial sir. Can you show us how to use retrofit with firebase please.

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

    URGENT:
    Sir do i need to keep my server "ON" complete day , if my application is running at that time?plzz reply because i want to make an app for commercial purpose using retrofit

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

    sir, there is a problem, i have as your tutorial goes. but when i run the app, i am getting an error like this.
    02-14 19:56:17.509 9428-9428/com.ashfanndm.restapicontacts E/RecyclerView: No adapter attached; skipping layout
    02-14 19:56:17.527 9428-9428/com.ashfanndm.restapicontacts E/RecyclerView: No adapter attached; skipping layout
    can i know why this error is coming.

  • @AnkitGupta-cf6mg
    @AnkitGupta-cf6mg 5 ปีที่แล้ว

    My 6GB Ram is not enough to run Android studio. Will 8 Gb works well with 2.2 GHZ processor (Hp Pavilion G6)??????

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

    What if I have the api in htdocs and the server is my localhost, what should the base_url be in this case?

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

    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?

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

    Sir g it's give me an error on get function . On recycler adapter class . And i did not use database. I use json file only . And i give path of my save folder in json . Plz guide me.

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

    If the response is in different json structure(like user details response and other no user reponse), what should we do? please answer

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

    Thanks... Can you please tell me how to insert data to server using Retrofit?

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

    Sir while running it's giving an error, No such method error : No static method metafactory
    Can you help me out :)

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

    You can use this script for the server of the init.php missing:

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

    thank your sir

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

    Hello all, brief, first thank you Prabeesh for this very sample app, ...euh I copied all files from the video, my code has no errors, but unfortunately the app stops immediately with a message
    retrofit(app name) keeps stopping...please how to correct this...thank in advance ;-)

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

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

    Thank you sir....

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

    how to upload 2 images, using 2 different button... to server using retrofit...

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

    Hello world,
    I am little bit confused about using retrofit library in android. Someone please help me.
    Thanks In Advance.
    Is it mandatory to use some other library with retrofit to parse the json data fetched by retrofit or not ?
    please see this,
    1). volley may have image parsing feature but it cannot convert a Json object directly into a POJO (Plain Old Java Object). On the other hand retrofit can automatically convert a JSON object into a POJO, but lacks image parsing.
    2). Retrofit makes use of OkHttp (from the same developer) to handle network requests. Also, Retrofit does not have a built-in JSON converter to parse from JSON to Java objects. Instead, it ships support for the following JSON converter libraries to handle that:
    Gson: com.squareup.retrofit:converter-gson
    Jackson: com.squareup.retrofit:converter-jackson
    Moshi: com.squareup.retrofit:converter-moshi

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

    Why did you change the root layout from constraint to relative?

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

      Constraint layout has been recently added and is mostly useless (to much code to add to put elements where you want). Relative layout is the default layout that android studio used for years until now. He simply reverted to default layout.

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

    sir, how to pass two key for accessing json within same url, using post method

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

    Can you make a tutorial on how to upload pdf and audio files to server using retrofit...

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

    Hi Can you please tell me where to make changes to the existing code in order to run the application on the device instead of AVD.
    Thank-You.

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

      Change the BASE_URL to your machine's IP, if using XAMPP it should world automatically, but with WAMP you will have to put it online(right click on the icon,put it online)

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

    following this video to try and get some data from mySQL, but am getting this error => "Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
    > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: retrofit2/BuiltInConverters$BufferingResponseBodyConverter.class", please assit me i have been stuck for days. tried everything

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

    In ApiInterface when i used @POST an error say "@pOST " not applicable to filed"

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

    I m getting the error when i intall in my mobile " there is a problem parsing the application"
    and in my other mobile my app unfortunatenate close. please help me. i used ur code

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

    FROM WHERE i GET THE PHP FILE THAT YOU ARE USING IN THIS VIDEO

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

      fu**ing write it hhhhhh

  • @Anilkumar-ec8sj
    @Anilkumar-ec8sj 7 ปีที่แล้ว +6

    Textsize should be in sp

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

    Please create a tutorial about how to do a pagination with a Retrofit. Thanks

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

    Why are we using "POST" request for the getContacts method? We are not posting anything to the API.

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

      POST and get method works from the view of website
      For example: if website is giving result without taking any parameters then we will use POST
      OR
      if website is taking some parameters or input we can say that means to use GET method

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

    Thank you sir

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

    getting issue like No Such instance filed apiInterface pls help!!!!

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

    Sir please create videos about kotlin full

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

    sir plz make a video for run progress bar with percentage in AsyncTask when calling remote server

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

    in the PHP script you have "require 'init.php'; "
    were i can find init.php???
    thanks

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

      if you find answer please mail me vinaytshetty@gmail.com

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

      This is the file in which you have your DB connections:
      //init.php (looks something like this)

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

    Why should the Activity know about ApiInterface?

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

    What if my database is SQL server?

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

    please help me how to prepare any app using reactneative thank you in advance

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

    can i get php codes

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

    I'm getting an error
    E/RecyclerView: No adapter attached; skipping layout
    Please help me resolve this.
    Thankyou!

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

    hi can the php file be placed any where on computer?

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

    Sir, Can you push the codes into githhub

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

    OnResponse method is not working !!

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

    hi sir , i have this error can you help me
    E/RecyclerView: No adapter attached; skipping layout

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

      add internet permission to your manifest file:

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

      Raed Abada I added this permission but not worked

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

      add your adapter to your recyclerview

    • @Omarahmed-fs8jv
      @Omarahmed-fs8jv 6 ปีที่แล้ว

      did you fix it?

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

      use recyclerView.setAdapter(yourAdapter);

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

    Hey Guys..., see the desktop icons 7th row 5th column he have corona logo...He is already predicted corona i think this video uploaded since 4years back...

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

    what is default ip address to access localhost

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

    can you show how reactnative work and how to make application using reactnative

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

    Someone help me with the php script. Its not working

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

    Why always change to Relative layout from constraint layout. I need UI tutorial in-depth. Anyone can help me on this.

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

      because working on relative and linear layout is easier then constraint layout but constratint layout is responsive for portate and landscape mode both.

  • @naveenkumar-lh7sq
    @naveenkumar-lh7sq 6 ปีที่แล้ว

    any one please tell me how to use retrofit with fragment pageradapter

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

    How to run real device.. mean its ip adress?

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

      in that case use your server ip

  • @Ajay-wh7rm
    @Ajay-wh7rm 7 ปีที่แล้ว

    Sir can you please start making app using kotlin

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

      Thank you for the suggestion. I will try it

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

    it shows error base url must end with /

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

      Then go to public static final BASE_URL and add "/" at the end.

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

    make a tutorial of getting response from API.

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

      Sure. Upload it soon....

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

    am i the only one who heard "aaah" at 13:46? lol

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

      i did lol you are such a stupid guy

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

      I didnt hear anything

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

      haha!

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

      your comment made me laugh while studying..yeah "aah" is there

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

      At that time I have only 2 weeks left to finish my project and I 'm very stress coz I have no ideas about this. Suddenly I heard the word "aaaah" . and I was like waddd?. At least it make me laugh too.

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

    thank you so much for this tutorial:
    can you make a tutorial how to send data to the server?
    Tnx in advanced

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

      Sure. I already prepare it. Upload it soon....Thank you for your support

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

      sir help require
      do read my comment i have a problem on your tutorial i did all the things right but the problem is hanging there

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

    so

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

    Any body notice corona logo

  • @md.mahadehasan6479
    @md.mahadehasan6479 7 ปีที่แล้ว

    java.net.SocketTimeoutException: connect timed out

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

      May be some problem with your API url . Did you check whether your API works in Postman software?

    • @md.mahadehasan6479
      @md.mahadehasan6479 7 ปีที่แล้ว

      Aravindraj Palani, yes I've fixed that. Thank you for your reply.