Beast Android Development: Parsing Json Data
Parsing Json data from a web API into an Android Application, is a critical skill to have as an Android Developer. In this course, you will learn how to do just that by using advanced third party libraries. You as the student will build one app with the instructor that will demonstrate effective communication with a web client API.
This course is a relatively short one making it is perfect for quickly improving your development capabilities. In addition to learning about parsing Json data, you also learn an effective way of organizing your Android apps by using an event bus. Further, you get the instructors knowledge on any and all Android related questions regarding this course or not.
Preparing Our Environment and Project Structure
Here we will see what app we are going to build and why it is important to learn how to parse Json data. In addition, the source code is also attached.
Just in case any Java guys are joining us. Here is a quick tutorial on how to get Android Studios.
It is important to have a real device to test your apps. However, just in case you don't have one, I will show you how to download and use my favorite free Android emulator, Nox!
To start our project, we will first get all the dependencies out of the way. In addition, I will show you how to implement flavors and discuss the benefits of doing so.
Using an event bus to decouple an Android app has many benefits such as higher app performance and better organization. We will see how to effectively implement an event bus into our project in this lecture.
With the event bus masterfully inside our project, it is time we learn how to use it. By the end of the lecture, you will understand how to use an event bus and why it is recommended to do so.
Building Our UI
In this lecture, we will take a look at the database we are going to be working with. In addition, we will obtain all the necessary credentials to use the database.
Here we will start building our one and only activity by making the layout. This lecture will also iron out the details on how to use linear and relative layouts.
With the layout completed, we will implement our Java code to get everything up and running. This is the first time we compile code in our project!
The main activity is almost complete! All we need to do is allow a way to scroll through the elements of our array list.
Parsing The Data
With the UI complete, all that is left to do is parse the data. We start in this lecture by first modeling the Json Structure and then making a retro fit interface.
We finish off the course by successfully parsing our data into the app by using retrofit, okhttp, and gson by google. Thank you very much for taking my course and I hope to see you in future courses!
In this lecture I thank you guys and give you some coupons for my other courses!
Working With Complex Json Data
In this lecture, we take a look at our new complex Json data structure. The data contains nested lists as well as nested objects. In addition, I will show you how to model these nested fields correctly.
In this lecture, we will use retrofit to grab all of our data by making an interface. In addition, we will see how to handle retrofit errors.