Android Networking: Fundamentals

Sep 6 2022 · Kotlin 1.6, Android 12, Android Studio Chipmunk | 2021.2.1 Patch 1

Part 1: Learn About HTTP & Threading

09. Conclusion

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 08. Challenge: Request & Parse Data Next episode: 10. Introduction

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 09. Conclusion

The student materials have been reviewed and are updated as of July 2022.

Transcript: 09. Conclusion

Great job reaching the end of the first part of this course! :]

You’ve learned so much about REST, HTTP, JSON and a bunch of other concepts that come with networking nowadays!

You used an HttpURLConnection to connect to the remote server, and its input and output streams to send or receive data.

You then proceeded to follow many of the standards and approaches REST describes, to define the endpoint path and the REST method for requests.

You also added things like headers, to describe the data types used in requests, and the authorization header, for the user token.

Before sending the data, and after receiving the response, you had to use various approaches to data parsing. This was necessary because the data was in the JSON format, which stands for JavaScript Object Notation.

Given that a good amount of the web today is run on JavaScript, it’s one of the most used formats for sending and receiving data.

Parsing is the concept of translating from one format to another, by using the keys stored in one object, to translate the values behind those keys, to properties of another object.

While parsing, you used manual methods, like the JSONObject, and more automatic methods, like the GSON parser.

That was quite a lot of new concepts, and I hope you’re enjoying the course so far! :]

In the next part, you’ll learn how to achieve all the functionality you implemented so far, with a lot less code, and without having to worry about things like threading, using the most used networking library on Android - Retrofit! See you in the next part! :]