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

Overview

MarsRealEstate - Starter Code

Starter 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...
ViewModel and ViewModelFactory Starter Code

ViewModel and ViewModelFactory - Starter Code Use as starter code for the ViewModel codelab. Introduction This starter app is a two player game, Guess

Android Trivia Starter With Kotlin

AndroidTriviaFragment - solution code This app is the solution code for Android Kotlin Fundamentals codelab 3.1: Create and add a fragment. The app is

This application features - Modern Minimalistic Design, MVVM, Pagination, Hilt, Retrofit, Room, Data Store, Flow, Live Data, Navigation Component (Clean Architecture)
This application features - Modern Minimalistic Design, MVVM, Pagination, Hilt, Retrofit, Room, Data Store, Flow, Live Data, Navigation Component (Clean Architecture)

NewsFly NewsFly is a modern news android application which features virtually ALL recent and recommended android development tech stack and tools used

This is An Android Project. in which we use SqLite Database. We perform Insert,delete,update and Show The existing data. operations using SqLite.
This is An Android Project. in which we use SqLite Database. We perform Insert,delete,update and Show The existing data. operations using SqLite.

SqLite Database Keywords : SqLite, Android, Database This is An Android Project. in which we use SqLite Database. We perform Insert,delete,update and

Android view data binding made simple!

DataBinding Android view data binding made simple! A more user friendly docu is coming! This library doesn't use any external library, so it's light w

This example was built for lecturing proposes, it shows how to consume data from an API.

Android Kotlin NewsMobEDJDCM2122 Example - EDJD 2021/2022 This example was wirten during the Mobile Computing lectures in the course 'Lincentura em En

Small project on using Room + MVVM + data binding

healthinfo This is a demo project that utilizes Room Database, MVVM, Data binding, Repositories, Retrofit and more to build an app that reads content

 Code samples for article:
Code samples for article: "Definitive guide for animated splash screen on Android"

animated_splashscreen_android Code samples for article: "Definitive guide for animated splash screen on Android" In this article you’ll see how animat

The code for the Congression App Challenge Webinar.

Getting-Started-with-Android-Studio-and-Kotlin-CAC-Webinar A webinar hosted by the Congressional App Challenge and theCoderSchool The code for the Con

Owner
null
Starter code for Android Kotlin Fundamentals Codelab 4.1 Lifecycles and logging.

DessertClicker - Starter Code Starter code for Android Kotlin Fundamentals Codelab 4.1 Lifecycles and logging. Introduction DessertClicker is a game a

null 0 Dec 2, 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 ViewModel Unscramble is a single player game app that displays scrambled

null 0 Nov 1, 2021
Use as starter code for the ViewModel codelab.

ViewModel and ViewModelFactory - Starter Code Use as starter code for the ViewModel codelab. Introduction This starter app is a two player game, Guess

null 0 Nov 24, 2021
up-to-date version of codelab exercise TrackMySleepQuality-Starter

TrackMySleepQuality - Starter Code Starter code for Android Kotlin Fundamentals Codelab 6.1 Room Introduction TrackMySleepQuality is an app for record

Paul de Mast 0 Dec 9, 2021
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

Sharlene Kumbhar 1 Nov 21, 2021
Starter code for the first independent project for Android Basics in Kotlin

Project: Lemonade App - Starter Code Starter code for the first independent project for Android Basics in Kotlin Introduction This is the starter code

null 0 Oct 10, 2021
Starter code for the second independent project for Android Basics in Kotlin.

Dogglers - Starter Code Starter code for the second independent project for Android Basics in Kotlin. Introduction This is the starter code for the Do

Ibrahim Alfaifi 0 Nov 6, 2021
Starter code for the second independent project for Android Basics in Kotlin

Dogglers - Starter Code Starter code for the second independent project for Android Basics in Kotlin. Introduction This is the starter code for the Do

null 0 Nov 6, 2021
Starter code for the third independent project for Android Basics in Kotlin

Lunch Tray - Starter Code Starter code for the third independent project for Android Basics in Kotlin Introduction This is the starter code for the Lu

Dania Puertas 0 Nov 11, 2021
Starter code for the third independent project for Android Basics in Kotlin

Lunch Tray - Starter Code Starter code for the third independent project for And

Aaron Socas Gaspar 0 Dec 29, 2021