/android-basics-kotlin-mars-photos-app

Basic tutorial for a trusted Android-kotlin app.

Primary LanguageKotlinApache License 2.0Apache-2.0

MarsPhotos - Solution Code

Solution code for Android Basics in Kotlin.

Introduction

[EN]

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. This app demonstrated 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.

[JP]

MarsPhotosは、火星表面の実際の画像を表示するデモアプリです。

これらの画像は、NASAの火星探査機が撮影した火星の実際の写真で、データはRESTウェブサービスとしてウェブサーバーに保存されています。

このアプリでは、Retrofit を使ってウェブサービスにRESTリクエストを行い、

Moshi を使って返されたJSONをKotlinデータオブジェクトにデシリアライズし、

Coil を使って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.