Giter Club home page Giter Club logo

w4's Introduction

Week 4 Assignment - Timers: a list of your favorite timers

This is assignment 4 of the 'mobile application development' course at Munich University of Applied Sciences.

Basics for this assignment

Follow lesson 6 'Persistence' in the udacity course or read 06.1, 06.2, and 06.3 in Google codelabs.

What to do with this repository

  1. Clone the repository
  2. You can create your own development branch or work with the master branch.
  3. Read the assignment on Moodle Assignment 'Week 4 - Lesson 6 of online course' or down below.
  4. Start coding and have fun.

Assignment

Extend your timer app to timers (multiple timers). In your timer app last week, you have a single timer and you need to change your start time depending on what you want to do. This week you use a room database to store your favorite timers (e.g. a timer for brushing your teeth, a timer for cooking hard-boiled easter eggs, a timer for cooking spaghetti, etc.). No more changing start times, just select the appropriate timer from your list of timers.

Extend your timer app or start with the code provided in this repository.

  • Create a database for timers.
  • A timer has a time in seconds and a name.
  • Define a DAO for timers to insert, update, and delete a timer; use a query to sort the timers in ascending order by length of time
  • Extend your timer app to list all the timers in your database. The user can select a timer in the list to start it. Check the code in this repository to see how to use a RecyclerView. If you don't want to use your timer, you can use the Android built-in timer, which is part of Common Intents. You find it in the Timer.kt in this repository.
  • The user should be able to create a timer, to delete a timer, to change time and name of a timer, and to sort the list of timers.

Screenshot of the starter code in the repository:

Continuous Deployment to Github Releases with Travis-CI

You might have checked Travis-ci for your builds. Travis-ci is a continuous integration server. The .travis.yml file in your repo configures Travis-ci. For this repo, we want to use continuous deployment of the apk that Travis-ci builds back to Github. The .travis.yml has a deploy script. You need to add an environment variable to your repository settings in Travis-ci.

  • Tag your build once you are done with the assignment: git tag v1.0 and git push origin v1.0. You can use v1.0 as your tagname or another tagname.
  • Go to https://github.com/settings/tokens/new to create a new personal access token. Enter travis-ci-release-token in the 'Note' text field and check the 'repo' checkbox. Click 'Generate token'.
  • Copy the token you see.
  • Go to https://travis-ci.com/ and go to your w4- repository. Click on 'More options -> Settings', scroll to 'Environment Variables'
  • Enter a new Environment Variable called GITHUB_API_KEY

- Click on 'More options -> Trigger build'. - After the build has finished, check the 'releases' tab in your Github repository.

To read more about Anroid and Travis-ci go to https://medium.com/android-bits/android-app-from-scratch-part-5-continuous-integration-with-travis-ci-1a6d30d22822.

w4's People

Contributors

gsocher avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.