Skip to content

Fetch data from internet with Retrofit (HTTP) & Moshi (JSON -> Java types converter)

License

Notifications You must be signed in to change notification settings

POManil/GoogleClassroom6

Repository files navigation

MarsPhotos - Starter Code

Starter code for Android Basics in Kotlin.

Introduction

Using this stater code you will create MarsPhotos is a demo app that shows actual images of Mar's surface. These images are real-life photos from Mars captured by NASA's Mars rovers. The data is stored on a Web server as a REST web service. The solution app will demonstrate the use of Retrofit to make REST requests to the web service, Moshi to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

The app also leverages ViewModel, LiveData, and Data Binding with binding adapters.

Pre-requisites

You need to know:

  • How to create and use fragments.
  • How to use architecture components including ViewModel, and LiveData.
  • How to use coroutines for long-running tasks.

Getting Started

  1. Download and run the app.

About

Fetch data from internet with Retrofit (HTTP) & Moshi (JSON -> Java types converter)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages