Backend and API

In this chapter, we will connect our application to the remote backend instance. All data we create will be synchronized to and from the backend. For the API calls, we will use Retrofit. Retrofit is the most frequently used HTTP client for the Android platform. We will guide you step by step through the common practices so you can easily connect and implement connection to backend in any application you develop in the future.

This chapter is, by far, the longest chapter in this book, and here, we will cover many important things such as the following topics:

  • Working with data classes
  • Retrofit
  • Gson with Kotson library
  • Content providers
  • Content loaders
  • Android adapters
  • Data binding
  • Using lists and grids

Read this chapter carefully ...

Get Mastering Android Development with Kotlin now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.