Mars Photos

Mars Photos app 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.

This app demonstrated the use of Ktor to make REST requests to the web service, kotlinx.serialization to handle the deserialization of the returned JSON to Kotlin data objects, and Coil to load images by URL.

Pre-requisites

You need to know:

  • How to create Composable functions.
  • How to use architecture components including ViewModel.
  • How to use coroutines for long-running tasks.
  • Familiarity with lazy grid

Getting Started

  1. Install Android Studio, if you don't already have it.
  2. Download the sample.
  3. Import the sample into Android Studio.
  4. Build and run the sample.