Giter VIP home page Giter VIP logo

customtimealarm's Introduction

CustomTimeAlarm

Traffic and time preferences based time alarm

customtimealarm's People

Contributors

kuchto47 avatar jurajvandor avatar

Watchers

Jakub Turcovsky avatar  avatar

Forkers

jurajvandor

customtimealarm's Issues

Refactor

refactor code (mainly SetAlarmFragment)

database update not working

when I try to update database it seems to do nothing - no new alarm is added and update doesn't change existing alarm.

Create MainActivity concept

We should create and agree on graphical concept of main screen of our application, what will be visible, what can be clicked and where.

Acceptance Criteria: We agree upon look and functionality of MainActivity.

Change existing code to load data from storage

All data for query construction are now statically returned. Change it that all data are loaded from users preferences (e.g. location of work, actual position, time of morning routine etc.)

Create App

Create App class as it is in seminar4 project. Part of this task is to redo all context getting from Mainactivity.context into App.getInstance() (which is the same)

Acceptance criteria:

  • App class is present
  • getInstance() method is accessible as static.
  • all places in code where we work with context so far should be rewritten to correct manner
  • public static context variable from MainActivity shall be removed.
  • Database test log still works as before

Back arrow

add back arrow on other fragments than MainActivity:MainFragment

Implement TimeHelper class

Potrebujeme classu ktora nejak rozumne spracuje cas najblizsieho budiku do formatu sekund od 1.1.1970 00:00:00 UTC...

Suggestion: Pockame na implementaciu settingov, ako to bude ukladat, mozno nam to celkom ulahci pracu

Implement Settings

Acceptance Criteria: these settings are available

  • notification for bedtime setting (default OFF)
  • minimum sleep time (default 8hrs)
  • notification GTFO (leave in xy minutes to get there on time) (default OFF)
  • snooze (for n minutes) (default 5mins)

These should be stored so it is possible to read it from another parts of app.

Implement SetAlarmFragment

Implement this fragment which will contain map and settings of alarm (time of arrival, destination, morning routine?)

little changes to setAlarmFragment

  • show chosen alarm time
  • show chosen default alarm time
  • align chosen text from dropdown to right (now its to left)
  • change picker for morning routine time
  • change save button to some icon-like button + use color of floating button

Create Main Activity concept

We should create and agree on graphical concept of main screen of our application, what will be visible, what can be clicked and where.

Acceptance Criteria: We agree upon look and functionality of MainActivity.

Landscape layout

implement landscape layout so it looks something like the provided picture

Implement dummy MainActivity based on concept

Create first version of MainActivity based on concept created in #4 . This doesn't have to have any functionality binded to it.

Acceptance criteria: Main Activity is designed and can be ran after app start.

Change GoogleMapsApi method

...change it so it gets Alarm object for which it should compute time to destination, since we might have multiple alarms in later stage of project...

Implement service

Implement service and wake up screen (activity over locked screen or notification with buttons).
We should discuss what should be done and when.

Get rid of enums

get rid of Enums, instead use annotations combined with interfaces

as a result, we get faster, less heavy code, straightforward saving into db and we can also get rid of typeconverters - thats good tradeoff

example is in slack of mine

Build backbone of GoogleMapsApi

Build couple classes with enums and so, final (dummy) behavior would be one public method of API that will return number of seconds to travel...

Consider using SharedPreferences insted of DB

What if we used shared preferences instead of DB for storing (Alarm class should then extend/implement Parcelable)... i just let it sink here, think about what is more efficient...use our DB and build AsyncTasks around it to work with it, or rewrite... I don't care to be honest...

Load devices location from device

If possible, get String address of actual location, if not, test enough what type of data will you get and how does G API respond to them (we want, in best case scenario, method String getDevicesLocation() which will return applicable string into G API request. Along with this, please do:

  • add internet permission
  • add permission to get location

add default time of Alarm

to entity, setting fragment and if alarmTimeGetter encounters any error return default time instead of -1

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.