Solution code for Android Kotlin Fundamentals Codelab 8.1 Getting data from the internet

Overview

MarsRealEstateNetwork - Solution Code

Solution code for Android Kotlin Fundamentals Codelab 8.1 Getting data from the internet

Introduction

MarsRealEstate is a demo app that shows available properties for sale and for rent on Mars. The property 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 Glide to load and cache images by URL.

The app also leverages ViewModel, LiveData, Data Binding with binding adapters, and Navigation with the SafeArgs plugin for parameter passing between fragments.

Pre-requisites

You need to know:

  • How to create and use fragments.
  • How to navigate between fragments, and use safeArgs to pass data between fragments.
  • How to use architecture components including ViewModel, ViewModelProvider.Factory, LiveData, and LiveData transformations.
  • How to use coroutines for long-running tasks.

Getting Started

  1. Download and run the app.

License

Copyright 2019 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You might also like...
The source code for the Words app codelab

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

This folder contains the source code for the Words app codelab.

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

This folder contains the source code for the Bus Scheduler app codelab

Bus Scheduler App This folder contains the source code for the Bus Scheduler app codelab. Introduction The Bus Scheduler app displays a list of bus st

This folder contains the source code for the Words app codelab

Words App This folder contains the source code for the Words app codelab. Introd

Getting started Kotlin - Examples and explanations
Getting started Kotlin - Examples and explanations

Getting started Kotlin I'm learning Kotlin, so I have been updating it with examples and explanations about the language that I'm using at work. Proje

Examples of Getting Started vídeos

Getting Started Kotlin Learn the basics of getting started with kotlin --- Repo: Kotlin Koans --- --- Repo: Problems Kotlin --- --- Rep

Getting Started with the URL Shortener project

Getting Started with the URL Shortener project Overall structure The structure of this project is heavily influenced by the clean architecture: A core

Spring-graphql-getting-started - Spring for GraphQL provides support for Spring applications built on GraphQL Java

Getting Started with GraphQL and Spring Boot Spring for GraphQL provides support

FriendlyChat starts in Firebase Android Codelab

FriendlyChat FriendlyChat starts in Firebase Android Codelab. The goal is to create an app to share message among friends using Firebase. I will be st

Owner
DavidHieselmayr
DE: Es gibt Wichtigeres im Leben, als beständig dessen Geschwindigkeit zu erhöhen. EN: There is more to life than increasing its speed. -- Mahatma Gandhi
DavidHieselmayr
Starter code for Android Basics codelab - Store the data in a ViewModel

Unscramble App =================================== Starter code for Android Basics codelab - Store the data in a ViewModel Unscramble is a single pla

Исмоил 0 Nov 19, 2021
Starter code for Android Basics codelab - Store the data in a ViewModel

Unscramble App Starter code for Android Basics codelab - Store the data in a Vie

null 0 Dec 29, 2021
Collection of code samples for learning Android Fundamentals.

Android Tutorials Collection of code samples for learning Android Fundamentals and lessons in KOTLIN from YOUTUBE. The layout of Android Applications

Mustajab Ikram 2 Oct 11, 2022
Android Kotlin Fundamentals 01.2: Anatomy of Basic Android Project

Welcome to Android Kotlin Fundamentals 01.2: Anatomy of Basic Android Project ?? Codelab de android para practicar apps Android con Kotlin ?? Homepage

null 0 Oct 23, 2021
Kotlin Programming Fundamentals - Assessment

Kotlin Programming Fundamentals - Assessment É hora de vermos o quanto você aprendeu sobre Kotlin e Programação Orientada a Objetos Parte 1: Entendend

Roberta Assunção 0 Nov 10, 2021
Kotlin Programming Fundamentals - Assessment

This project is an exercise to implement some functions at a already created school system and was purposed as a final project of a Jr. Mobile Developer Bootcamp (more information about the exercise in README.md)

João Victor Mendes da Silva 2 May 16, 2022
Code for the Advanced Android Kotlin Testing Codelab 5.1-5.3

TO-DO Notes - Code for 5.1-5.3 Testing Codelab Code for the Advanced Android Kotlin Testing Codelab 5.1-5.3 Introduction TO-DO Notes is an app where y

Jorge M 1 Jun 7, 2022
This folder contains the source code for the Words app codelab.

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

Ibrahim Alfaifi 0 Nov 8, 2021
Starter code for PropertyAnimation codelab

PropertyAnimation - Final Code Starter code for PropertyAnimation codelab Introduction PropertyAnimation is an app that shows various types of propert

null 0 Nov 14, 2021
This folder contains the source code for the Words app codelab.

Choose the letter, choose the word from a list then press it to google search for it. Ps. Learnt from Android-Basics-Kotlin powered by Google.

null 0 Nov 14, 2021