Book Image

Building Android RESTful Client Apps [Video]

By : Renaro Santos
Book Image

Building Android RESTful Client Apps [Video]

By: Renaro Santos

Overview of this book

<p>Many successful apps such as Spotify, Google, and PayPal consume data from the internet and upload content. These apps mostly use RESTful APIs to communicate with a server through the HTTP protocol.</p> <p>In this course, you’ll learn to create a Tinder-like client application in Android using Java libraries such as Retrofit and Gson to make sure your code is clean and testable. Moving on, you’ll learn to read and create JSON and use libraries to make your life easy. Then we’ll show you how to deal with the common errors that occur with REST APIs and how to use interceptors to intercept a request and log data and errors.</p> <p>Finally, you’ll see the MVP architecture and implement its main features to create clean and testable code. By the end of this course, you’ll be able to build efficient Android applications that use RESTful services.</p> <p>The code bundle for this video course is available at <a style="color: #fa8d11;" href="https://github.com/PacktPublishing/Buidling-Android-RESTful-Client-Apps" target="blank">https://github.com/PacktPublishing/Buidling-Android-RESTful-Client-Apps</a></p> <h1>Style and Approach</h1> <p>This course takes a practical approach, where you’ll learn by creating an app. We’ll teach you everything you need to know about creating a REST API client in Android using Java.</p>
Table of Contents (5 chapters)
Chapter 2
Building a REST Client
Content Locked
Section 4
Creating a REST Client in Android Using Retrofit – Part One
In this video, we will see how to import and use Retrofit. - Import Retrofit into the project and read http://square.github.io/retrofit/ to better understand the library - Create a class to define a GET request - Read the response from the GET request