up-to-date version of codelab exercise TrackMySleepQuality-Starter

Overview

TrackMySleepQuality - Starter Code

Starter code for Android Kotlin Fundamentals Codelab 6.1 Room

Introduction

TrackMySleepQuality is an app for recording sleep data for each night. You can record a start and stop time, assign a quality rating, and clear the database.

In this codelab, working from this starter app, you will implement the Room database that holds the sleep data. You will then use instrumented tests to verify that this backend works.

Pre-requisites

You need to know:

  • Building a basic user interface (UI) for an Android app, using an activity, fragments, and views.
  • Navigating between fragments and using Safe Args (a Gradle plugin) to pass data between fragments.
  • View models, view-model factories, and LiveData and its observers. These Architecture Components topics are covered in an earlier codelab in this course.
  • A basic understanding of SQL databases and the SQLite language.

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...
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

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

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

Reach plc. Apps Team Exercise (Junior)Reach plc. Apps Team Exercise (Junior)

Reach plc. Apps Team Exercise (Junior) Description One of our magazines is looking for new sources of revenues and starts a few partnerships with beau

Starter code for Android Kotlin Fundamentals Codelab 7.4 Interacting with RecyclerView items

TrackMySleepQuality with RecyclerView - Starter Code for 7.4 Starter code for Android Kotlin Fundamentals Codelab 7.4 Interacting with RecyclerView it

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

Starter code for PropertyAnimation codelab

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

Starter code for Android Kotlin Fundamentals Codelab 7.1 RecyclerView Fundamentals

TrackMySleepQuality with RecyclerView - Starter Code for 7.1 Starter code for Android Kotlin Fundamentals Codelab 7.1 RecyclerView Fundamentals Introd

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

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

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

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

MarsRealEstate - Starter Code Starter code for Android Kotlin Fundamentals Codelab 8.1 Getting data from the internet Introduction MarsRealEstate is a

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

Starter code for Android Kotlin Fundamentals Codelab 6.1 Room

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

Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.
Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

Starter-Android-Library - Starter Android Library is an Android Project with Modular Architecture.

Nepali Date Picker library in Jetpack compose for android with Date conversion from BS to AD and vice-versa
Nepali Date Picker library in Jetpack compose for android with Date conversion from BS to AD and vice-versa

Nepali Date picker Converter - Re in Compose This is a re-work of Nepali Date Picker Converter in jetpack compose and kotlin. English Locale Nepali Lo

Mobile development Exercise Simple photo viewer
Mobile development Exercise Simple photo viewer

Mobile development Simple Photo viewer Exercise A simple photo viewer based on Udacitys example app "dice roller"." Mobile development Exercise Simple

An android application that made as an exercise, that does 4 different conversions.

Following android studio basic course, this is my second (and bit more complicate this time) "practice on your own" project. In few words, it is an an

Reach plc. Apps Team Exercise (Junior)

Reach plc. Apps Team Exercise (Junior) Description One of our magazines is looki

Owner
Paul de Mast
Paul de Mast
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
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 Kotlin Fundamentals Codelab 8.1 Getting data from the internet

MarsRealEstate - Starter Code Starter code for Android Kotlin Fundamentals Codelab 8.1 Getting data from the internet Introduction MarsRealEstate is a

null 0 Dec 14, 2021
Taken from a PeopleCode app package to be used as a refactoring exercise

The code below was taken from a PeopleCode app package to be used as a refactoring exercise. Packages original: contains the code below translated int

Luis Arcos 1 Feb 15, 2022
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
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

null 0 Nov 10, 2021