Consume an API, Web Service with Retrofit on Android

Tutorial to create a Pokédex app from scratch. The app uses Retrofit library to consume an API on Android. In addition to using Glide to download images.


What you'll learn

  • Consume an API or Web Service with Retrofit
  • Use a RecyclerView component in grid mode
  • Handle RecyclerView events

What you'll need

  • Know how to obtain images with Glide


API (0:22)

Google Chrome Extension (1:10)

Images (1:47)

URL to obtain the images of the pokemon by their number.


2:02 Dependency to use Retrofit in the module build.gradle

compile 'com.squareup.retrofit2:retrofit:2.1.0'

More information and Retrofit documentation.

The Code

The complete code: