How to Call REST API in Android

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ก.พ. 2025
  • This Video Shows
    How to consume a simple REST WEB Service in android App using
    Volley.
    How to call restful webservice in Android studio

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

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

    I'm trying to do that to work for a week, and just with your video i got it. Thank you so much!

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

      same 😂 i tried so many ways.. i hope this works

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

    You 're the best keep going

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

    Love it! If theres code gist or github link would be wayyy better!

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

    Was Helpful. I am going to see ur GSON tutorial now. Thanks

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

    BEST TUTORIAL EVER, THANK YOU SO MUCH.

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

    Concise, good job

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

    Nice job!!

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

    That was really helpful thanks

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

    Very good tutorial! Thank you!

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

    Spectacular! Nice job.

  • @douglaslopez2311
    @douglaslopez2311 6 ปีที่แล้ว +4

    Thank you so much for your help. I have several compilation errors. I am using android studio 3.1.2, gradle 4.5, maybe this is the reason of the compilation errors.
    Does android studio 3.1.2 contains the volley library?
    The steps I followed were: included in the gradle
    implementation 'com.android.volley:volley:1.0.0'
    implementation 'com.google.code.gson:gson:2.4' and
    and in the main
    import com.android.volley.RequestQueue;
    import com.android.volley.toolbox.Volley;
    But the compilations errors appear in the first statement
    RequestQueue requestQueue = Volley.newRequestQueue(this)
    In red are: RequestQueue
    the error says: function invocation "RequestQueue" expected ....
    Also in the = and the dot (after Volley) the error says: expecting an element
    It did not recognize the volley library. I read several articles in Internet to include as a module the volley library, but in the video, it was not included, meaning the volley library is already available when the import is done. Am I correct?
    Please your help is highly appreciated.

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

    thanks alot very clear and understandable

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

    thank you so much

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

    Great video. Thank you.

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

    Thanks, Nice explanation

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

    You pronounced Video correctly at ~1:35, so I don't understand why you tried to pronounce Volley with a W! It's the same sound; Video, Volley. :)

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

      Germans do that as well. A lady called my friend Vicktor Wick

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

    I´m getting the error "attribute android:allowBackUp not found". Can you help with this? I added that in the code tho so wtf

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

    How do you make the response to show up on the screen how you want it to look?

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

    How did you get your pc's IP and how did you let it give access to your phone ?

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

      I know it's late but you should open your port on your PC (Wampserver for example ) and allow forwarding from your router. Search for forwarding tutorial online

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

    great tutorial. Thanks

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

    Hello, How Can I use the post method and sending parameter? I just want to send parameter to web service and get the response:) Finally, my parameters That I would send are different types in the web service. for example, first parameter is string, second parameter is boolean.. Because web service wants a lot of types. Please help me :(

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

    Hi I would like to know how did you create the rest webservice with those java objects

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

    How Will be on a service running every 5 seconds.??? Thanks amazing andar simple try a vídeo with recycleview.

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

    Thank you so much for your help. I have several compilation errors. I am using android studio 3.1.2, gradle 4.5, maybe this is the reason of the compilation errors. Do you have this project in android Kotlin?
    The steps I followed were: included in the gradle
    implementation 'com.android.volley:volley:1.0.0'
    implementation 'com.google.code.gson:gson:2.4' and
    and in the main
    import com.android.volley.RequestQueue;
    import com.android.volley.toolbox.Volley;
    But the compilations errors appear in the first statement
    RequestQueue requestQueue = Volley.newRequestQueue(this)
    In red are: RequestQueue
    the error says: function invocation "RequestQueue" expected ....
    Also in the = and the dot (after Volley) the error says: expecting an element
    Please help me on this
    May God bless you
    Douglas Lopez
    Caracas-Venezuela

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

      I am so sorry. Forget my request to you. I need to include volley as a module as explained in www.technoburgh.com/android/android-studio-volley/. Thank you

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

    i also use IP addredd but, it return bad request, can you help me?

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

    please make video on post request using rest api

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

    Thank you.

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

    3:10 what should I do if I synced my project before?

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

    could you help on the part on how a http api calls the functional app on cloud?

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

    Can you tell me how can I send data on an api using button on click.

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

      Look up anonymous classes, event handlers and POST method. That should give you a good starting point.

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

    Compiler show error: Program type already present: com.google.gson.FieldAttributes , help me pls : (

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

    Good Day. Why you change local host to your ip address ?

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

      When you call the localhost, you will be referring to the mobile app, so you have to pin point the server which is not mobile, unless if it was, not sure if that's efficient.

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

    Please post more videos

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

    Nice video

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

    My soul has thirst of you, oh my god, my soul sigh for you...

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

    where put api key plz make video for api key

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

    bro how to call api from dreamfactory in android?

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

    how to code post method

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

    ficou foi bom essa mizera

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

    share code of controller.java file pls @yrrhelp

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

    timeout error?? pls help

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

      Same here

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

      @@lefterispapoutsis9154 please try to uninstall and re install the app on emulator/mobile
      , if not fixed connect the device to same network

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

    how to print that response

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

    post method lo yala chastaru

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

    source code please?

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

    WHERE IS THE DEMO?