Project

General

Profile

A clock that produces a sound every hour & international clock

Added by A F almost 4 years ago

Hello,

I've been thinking about two features I'd like to add to the Replicant OS.

1.) A sound for every hour, for instance the one that is produced by the Big Ben tower in London

2.) The possibility to have all the international clocks (ie. the clocks that display the time in different cities) displayed on the background of the desktop/start screen.

Would anyone be opposed to me trying to do this and subsequently including it with the Replicant OS? If not, I'd try and include it myself, extending the clock application.

Of course, I'd be very appreciative about any hints as to how one might accomplish this; I'm a newcomer to smartphone technology.


Replies (4)

RE: A clock that produces a sound every hour & international clock - Added by dl lud almost 4 years ago

Hi,

Those 2 features are things that can and should be implemented in apps, not in the OS. The Android programming API gives you enough flexibility to implement all that.

For 1), you can take a look at the available free software clock apps in F-Droid and build on top of one of them.

For 2), you can do it as a LiveWallpaper (example Clock Live Wallpaper), or as a widget.

Hope that helps!

RE: A clock that produces a sound every hour & international clock - Added by A F almost 4 years ago

For 2, I assume that it's possible to read the international locations in use from the clock app somehow.

For 1, I think that this kind of thing would require some kind of a daemon. I suppose that there is an analogue of these in Replicant.

I'll startpage everything I won't get an answer to, but I'd appreciate any hints.

RE: A clock that produces a sound every hour & international clock - Added by dl lud almost 4 years ago

For 2, I assume that it's possible to read the international locations in use from the clock app somehow.

Those settings are stored inside the app's private data. The correct way for you to go forward with your idea, would be to fork the clock app and add this new feature to it (a widget seems to be what you're looking for).
The canonical repo for the clock app is at https://android.googlesource.com/platform/packages/apps/DeskClock

    (1-4/4)