Java Android App using REST API – Network Data in Android Course

Wordpress sites

Learn how to build an Android app with Java that handles JSON data from a REST API service. The app uses the Volley library to create a weather app using API data.

This course includes advice on building a RequestQueue, designing a Singleton, and using callbacks for async network communications. You will also learn to use the Volley library methods JsonArrayRequest and JsonArrayObject to parse a JSON file.

✏️ Course developed by Shad Sluiter. Check out his YouTube channel:

⭐️ Course Contents ⭐️
⌨️ (0:00:00) REST API explained: JSON vs XML
⌨️ (0:14:04) Introduction to the Android Weather App
⌨️ (0:17:32) Design the Layout
⌨️ (0:29:16) Button onClick Listeners
⌨️ (0:35:52) Request JSON Data with Volley
⌨️ (1:01:44) Singleton Request Queue in Volley
⌨️ (1:09:20) Callbacks for Async Requests
⌨️ (1:31:06) Fetch One JSONObject from an Array
⌨️ (1:45:56) JSONArrayRequest with Volley
⌨️ (1:59:14) Fetch JASONArray with Volley
⌨️ (2:08:16) Get Forecast by City Name

⭐️ Special thanks to our Champion supporters! ⭐️
🏆 Loc Do
🏆 Joseph C
🏆 DeezMaster

Learn to code for free and get a developer job:

Read hundreds of articles on programming:

And subscribe for new videos on technology every day:

26 thoughts on “Java Android App using REST API – Network Data in Android Course”

  1. Hello Shad, thank you for this class, it was helpful to me. Also, any chance to have the same videos but with Kotlin? At least the asynchronous callbacks 🙂

    1. For each of the links he used in the video, they should show you the Koltin code instead since that is the standard for android now. So if you follow the video and go to the same links, the code you copy will be the same code just slightly different because it’s in Koltin. You’ll just have to be careful and read the page a bit when you look at the errors and try to fix them.

  2. This is a fantastic course. The approach of build, refactor, repeat builds a great set of tools to write better code. The best takeaway from this video in my opinion.

  3. felt great to see that people are still making android apps in java,
    btw nice tutorial, got a lot out of it
    you have my gratitude

    1. @Bassel Nasief that’s what I want to explain to my juniors, but they don’t give a heads to my points on why java is a good option, they neglect everything because it’s verbose according to them

  4. I noticed something in the first example of the volley library. When you use the response.substring(0,500) as the response for the stringRequest and the response string is shorter than 500 characters the apps crash because you will get a StringIndexOutOfBoundsException, yeah of course he used just the response as a variable for his Toast but this can lead to some bugs and quickly demotivate especially new programmers.

  5. Shambhavi Aggarwal

    Your way of teaching is fantastic! I loved the part where you made mistakes and corrected them later. Your video helped me a lot to build my own project. Thanks a ton! <3

    1. I find that his method is effective and it is better than the prepared courses which hides steps without explaining them

  6. *Wow, im very impressed.* It is my 6. semester in Germany and I searched for help to implement my first own app to get Corona-Data from our institute because I don’t want to check every day many of values for different cities.
    I never thought to found a so damn good tutorial which helps me for all my questions with the API, Callbacks etc.
    Never saw a video like this. I have no suggestions, it was perfect.
    My app is working and I have so many ideas for develope it further. It makes a lot of fun.
    Thanks a lot that I can watch this for free on YouTube. Greetings from Germany!

  7. Michael O'Dempsey

    Fantastic presentation… Wish I had teachers like that at school and may have learnt more… Thank You

  8. Ive seen many people try and explain android studio projects on youtube. But you got my like & subscribe. You take your time, cut it short on things that aren’t important and explain every single step. Great great job!

  9. Sidhu X Editz

    I learnt Basic Java and applied for an internship and the very next day I was assigned to make an application which shows the details of a region form REST API, according to user input and also had to load the previously viewed data even if the user is offline. I’ve time of 48 hrs only. But now I think I can do it and I’m gonna do it.🔥

  10. alain leclerc

    Dear professor! i really enjoy your amazing tutorial. I learnt a lot and it was an opportunity to create a nice app. thank you very much for putting this tutorial on YouTube. you are a wonderful teacher!! just one note: this tutorial is definitively not for beginners. it is required to know well classes, interfaces. it is only an advice for other students. but it is a very good introduction to API with android. thank you very much!!

  11. DailyProd MUSIC

    Thank you so much for this lesson. This video is suitable for everyone that has some basic concepts about Android, so he/she understands what the instructor is really doing

  12. This teacher explains as if he were dealing with an acephalous, exactly what I needed, very good!

  13. Amazing Course!
    I was making some research about how to consume an API and this was very helpful!
    Thanks a lot

Comments are closed.