Interval timer beginner android project
adit299 / android_interval_timer Goto Github PK
View Code? Open in Web Editor NEWInterval timer beginner android project
License: MIT License
Interval timer beginner android project
License: MIT License
When notifications trigger in the Android emulator, the notification sound was not playing. I suspect that the issue has to do with:
Mainly, the setTimeoutAfter
field. When this field is set to a time that is smaller than the duration for the notification sound, the sound gets cut off when testing on my physical android phone (Pixel 6A). Maybe it ends up not playing at all when testing on an emulator since the notification sound is different with a different duration? Or the noise being cutoff isn't handled in the emulator? I also noticed that increasing the duration of this field leads to unpredictable behaviour (ex. notification noise not playing at all, or only playing for the first notification, etc.). For now, it has been set to a value that leads to the expected behaviour on my phone (sound plays for notification and is not cutoff).
Hey Adam, here are some useful links for how to create a new activity/details about an activity:
Acceptance Criteria
Note:
While looking into adding the alarm capabilities for the app, I stumbled across this on Stack Overflow:
https://stackoverflow.com/questions/28831907/countdowntimer-firing-ontick-at-not-excepted-time-point
I think it is worth looking into possibilities of eliminating the use of the IntervalCountDownTimer library in the future, since the way we are using it seems a little "hacky"
Utilizing Handler and Runnable might make the app more performant? Not sure..
Proposed Solutions:
When timer is running, Start button turns into pause button (preferred)
Proposed Solution:
Have a concrete idea of what we are trying to accomplish:
Before next meeting, do a little research about:
Proposed Solution:
Title. Maybe also look into adding other options on the notification itself.
Proposed solution:
(1) Interval
(2) Duration
(3) Number of Intervals
Once the user inputs their choice for 2 out of the 3 input fields, the third one is auto-populated and the user can proceed to the next screen after verifying they are happy with their choice.
ex.
Sets 4 sets
Duration 2 hours
Interval 15 minute
"Rest" 5 miuntes rest
Timer1 10 minutes
(1) Duration includes the sum of all other timers:
4 sets - duration = 2 hours / sum of timers = (15 minutes + 5 minutes + 10 minutes)
If the user leaves one of the fields blank, but fills in the rest, it can be auto populated as well.
Activity.this.finish()
exhibit the behaviour that we would want?A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.