BlackyHawky / Clock

Privacy-conscious open-source clock, based on AOSP Clock
Apache License 2.0
236 stars 13 forks source link

Add datepicker to create alarms by selecting the specific date #4

Closed qw123wh closed 1 week ago

qw123wh commented 2 years ago

ability to create alarms by selecting the specific date

Nalajalan commented 2 months ago

+1 ! For me it's the only reason not to use this app... I'm saddly absolutely not capable to help. I just wonder how is it possible to manage all the rest of the application and not this function that seems quite "natural" and allowed by the OS.

BlackyHawky commented 2 months ago

@Nalajalan

... I just wonder how is it possible to manage all the rest of the application and not this function that seems quite "natural" and allowed by the OS.

Because I'm learning code on my own without having studied it at school (I've only been coding for a year), so there are certain functions that I find hard to exploit because nobody ever taught me anything.

With more free time, maybe I could do it, but with the constraints of my personal life, it's complicated.

In any case, I can confirm that it is possible to implement this feature.

Nalajalan commented 2 months ago

I meant too that I wonder how you manage to do all the rest :) I hope somebody will help 🀞 :)

BlackyHawky commented 2 months ago

I meant too that I wonder how you manage to do all the rest :)

I guess you know I didn't create the app; 90% is based on AOSP clock. For my part, I've only allowed the user more customization, reworked the digital widgets, settings, a bit of the timer, permissions, and other things I've forgotten. I only succeeded because it was easy to play with these pieces of code.

I hope somebody will help 🀞 :)

I hope so too.

Komas19-new commented 2 months ago

is it also possible to set multiple dates, by just pressing on specific days?

BlackyHawky commented 2 months ago

@Komas19-new That's the goal to resolve this issue but I'm not sure how to do it 😬 Moreover, my free time is currently limited.

BlackyHawky commented 1 week ago

@qw123wh @odmfl @Nilsu11 I've finally had a few hours to work on it, and the results seem to be very positive.

Currently, the most annoying thing is that you have to delete the data from the app for the modification to take effect. I'll try to find a way not to have to do this for the next update. In any case, we can assume that this issue will be resolved very soon.

You can test it with the apk below.

@Komas19-new I was wrong: you can only select one date per alarm, and that seems logical. (The Google app works the same way.)

Clock_2.10_beta-debug.zip

qw123wh commented 1 week ago

@qw123wh @odmfl @Nilsu11 I've finally had a few hours to work on it, and the results seem to be very positive.

Currently, the most annoying thing is that you have to delete the data from the app for the modification to take effect. I'll try to find a way not to have to do this for the next update. In any case, we can assume that this issue will be resolved very soon.

You can test it with the apk below.

@Komas19-new I was wrong: you can only select one date per alarm, and that seems logical. (The Google app works the same way.)

Clock_2.10_beta-debug.zip

Fantastic I'm very happy πŸ”πŸ”πŸŽ‰πŸŽ‰

BlackyHawky commented 1 week ago

I'm really sorry but I really don't know how to make this change without having to reinstall the application or clear the data.

Indeed, I had to modify the SQL database and every time I changed these files, the application crashed during an update.

Fortunately, we can now make a backup/restore.

Do you mind if we unfortunately have to reinstall the app (or clear the data)?

qw123wh commented 1 week ago

For me it is not a problem to reinstall the app or delete the data.

Is the crash caused by SQL database update? I found something I don't know if it can help

https://stackoverflow.com/questions/53172400/how-to-update-your-android-sql-database-without-crashing-the-app

https://medium.com/@myofficework000/upgrading-sqlite-database-5a0c8bcb9c10

BlackyHawky commented 1 week ago

@qw123wh Thank you very much for your links!! πŸŽ‰πŸŽ‰ But why didn't I find this sooner?!! This would have avoided a big inconvenience when version 2.6 was released…

In any case, thank you again because according to my tests it seems functional. πŸ˜‰

BlackyHawky commented 6 days ago

@qw123wh I'm providing you with an early release of the application so that you can benefit from this improvement. πŸ˜‰

Thanks to your research, it's obviously not necessary to delete the application's data. Thanks again.

Clock_2.10_beta-release.zip

qw123wh commented 6 days ago

@qw123wh I'm providing you with an early release of the application so that you can benefit from this improvement. πŸ˜‰

Thanks to your research, it's obviously not necessary to delete the application's data. Thanks again.

Clock_2.10_beta-release.zip

Thanks ❀️, I'm glad you found the solution through those links. With this feature we have officially surpassed Google Clock πŸŽ‰πŸŽ‰

This app has reached a very high level πŸ”πŸ”πŸ”