qw123wh / Aospdeskclock

Fork of aosp deskclock: alarm,clock, timer,stopwatch
Apache License 2.0
50 stars 9 forks source link

Add Bedtime #9

Open gun4qmm7h opened 2 years ago

gun4qmm7h commented 2 years ago

I was wondering if you can add a bedtime tab like what apple/google does on the clock app.

qw123wh commented 2 years ago

hi i am unable to do this however I have merged your vibration pull request. If you can add bedtime as well, you or someone else will be happy to merge your pull request

gun4qmm7h commented 2 years ago

Thank you, I'm new to android development but I would love to work on this. I have added some thing and change the timer layout a bit. (Still working on it, Can't change single zero to double zero) image

qw123wh commented 2 years ago

all your requests will be united, however if I could also solve issue #4 I would be very happy

gun4qmm7h commented 2 years ago

I'm working on #4 and I have everything done. But I can't seem to detect the power button with "dispatchKeyEvent" or "onKeyDown". If you are able to help in some way I would appreciate it.

qw123wh commented 2 years ago

hello, thanks for your help. Try to take a look at the source code of these 2 applications and see if it can help you, these two applications let you do it, at the end when you press the power button the screen turns off, you can find also a method to detect the screen turning off as a consequence when the screen is turned off is "dismiss, snooze, nothing" the alarm

https://github.com/pranavkapoor001/Alarmzy/commit/245f68eb404fe13312eaf72e8f6a2ccfa858878d

https://github.com/WrichikBasu/ShakeAlarmClock