[MOD] Alarm clock from 4.2.2 themed to better fit 4.1 style - v1.2

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
I took the 4.2.2 alarm clock from arman68 modular rom and modified it to better fit 4.1 Style.

What I did:

- red bold "all caps" headlines changed to white non bold not "all caps"
- everything else that was red is now holo blue

I also tried to get rid of the ugly bold/slim design of the clock fonts. But that isn't so easy as it seems to be and therefore I failed. Maybe in a future update...

Tools used for my modding activities:
- Virtuous Ten Studio
- ImageMagick (command line image manipulation)
- win-bash (UNIX Bash Shell for Windows)
- Greenfish Icon Editor Pro
- WinMerge
- Notepad++
- my brain :cool:

Changelog:.

v1.1: Background is now black. City names in city selection list are now smaller. not condensed and not "all caps". Managed to make the hour digits a lot thinner on desk clock and alarm screens. Unfortunately they are still a little bolder than the minutes. Seems to be impossible to obtain the same font for hours an minutes by xml editing.

v1.1.1: Added "UTC" timezone. "Ho-Chi-Minh-Stadt" had a double entry in German. Corrected that, one entry is now "Saigon".

v1.2: Reverted the grey gradient on the actionbars on main clock screen to what it originally was - a pure transparency gradient. Actionbars on settings, cities list and alarmclock are now standard holo style with app icon (removed the blue divider line on alarmclock screen, because it doesn't look nice there). Changed the locations icon on the world clock screen to the globe icon from deskclock 4.4
 

Attachments

Last edited:

arman68

Senior Member
Sep 22, 2006
286
230
0
I took the 4.2.2 alarm clock from arman68 modular rom and modified it to better fit 4.1 Style.
Good job.

I actually like the red and bold/caps heading; this is the way google designed it. But I understand everyone has different choices, and your changes do fit well in the holo design.

To tell you the truth: I have little love for the holo blue. Do you know that the colour blue causes the body to release hormones that keep us awake? Not so good for when using the phone in the evening or at night.

If it was up to me, I would have themed the whole JB interface with the holo orange. For reference, here are the standard holo colours:
android_colours.png
 

hungcuongkt

Member
May 7, 2012
6
0
0
yes! u right

Good job.

I actually like the red and bold/caps heading; this is the way google designed it. But I understand everyone has different choices, and your changes do fit well in the holo design.

To tell you the truth: I have little love for the holo blue. Do you know that the colour blue causes the body to release hormones that keep us awake? Not so good for when using the phone in the evening or at night.

If it was up to me, I would have themed the whole JB interface with the holo orange. For reference, here are the standard holo colours:
View attachment 1924799
 

dara85

Member
Sep 3, 2011
36
7
0
Hi there

Is the digital clock widget working? At the moment I'm using Omar's ROM and I really miss this clock.
Thanks



\/ \/ thanks
 
Last edited:

hypophysis

Senior Member
Oct 12, 2009
114
122
0
Neuburg a.d. Donau
Hi there

Is the digital clock widget working? At the moment I'm using Omar's ROM and I really miss this clock.
Thanks
No, the digital clock widget has been completely removed by arman68. I've read that backporting the digital widget would mean a rewrite of larger parts of its code because it uses some 4.2 specific system calls with no substitute on 4.1
 

DMTwo

Member
Apr 24, 2012
10
22
0
It worked perfectly!
I’m running a XT890 with locked bootloader and rooted.
My System version is 982.50.29.XT890.Brasil.en.BR
Android Stock 4.1.2
Language: Brazilian Portuguese
DeskClock version 1.2

It’s running properly, the texts are just fine.

There’s only one issue, when you start the stopwatch and alternate to other application, the status bar shows the Stopwatch notification (that it is running in background) but the time is above the Stopwatch icon.

This don’t happen to the countdown.

I’ve attached two screenshots to show exactly how it is.

Anyway, I loved this mod, I couldn’t believe when I realized that RAZR I didn’t have a countdown and a stopwatch, I came from a Defy and it has at least the countdown.
Thanks a lot hypophysis!!!
 

Attachments

  • Like
Reactions: somarz

Fsmaior

Member
Feb 24, 2014
6
0
0
How do I do it?

It worked perfectly!
I’m running a XT890 with locked bootloader and rooted.
My System version is 982.50.29.XT890.Brasil.en.BR
Android Stock 4.1.2
Language: Brazilian Portuguese
DeskClock version 1.2

It’s running properly, the texts are just fine.

There’s only one issue, when you start the stopwatch and alternate to other application, the status bar shows the Stopwatch notification (that it is running in background) but the time is above the Stopwatch icon.

This don’t happen to the countdown.

I’ve attached two screenshots to show exactly how it is.

Anyway, I loved this mod, I couldn’t believe when I realized that RAZR I didn’t have a countdown and a stopwatch, I came from a Defy and it has at least the countdown.
Thanks a lot hypophysis!!!
Hey man! I have exactly the same version as yours, and my bootloader is locked and the phone rooted. I'd like to know step by step how to install this mod. I've been craving for a clock app with stopwatch and timer...I don't understand why JB 4.1 doesn't have it. I use a third-party app to do the job, but a native one is MUCH better.

I would really appreciate if you could help me with that!

Thanks in advance
 

DMTwo

Member
Apr 24, 2012
10
22
0
Hey man! I have exactly the same version as yours, and my bootloader is locked and the phone rooted. I'd like to know step by step how to install this mod. I've been craving for a clock app with stopwatch and timer...I don't understand why JB 4.1 doesn't have it. I use a third-party app to do the job, but a native one is MUCH better.

I would really appreciate if you could help me with that!

Thanks in advance
Sure!

There’s no secret to make it work!
I've used Root Explorer to do the job, so you gonna need it.

1) Download the DeskClock version 1.2, I've tried the 1.1.1 Brazilian version and it didn't work;
2) Make a backup of your Deskclock and the ODEX file;
3) Delete the files Deskclock.apk and the ODEX file;
4) Copy the new Deskclock to the System APP folder (root/system/app);
5) Set permissions to 644, in case of doubt you can check the permissions in any other file inside this folder, all Apps should be set with this permission.
6) Reboot your phone, I used the way shutdown and turn on, but you can do it with Terminal emulator without any problems too
7) Enjoy your new Clock with Stopwatch and countdown.

I’m using it since last week, no problem was found in the Alarm, Countdown and Stopwatch, the only issue is that I’ve mentioned before.

I hope to help you.
If you need anything else just ask me, I’ll be glad to help.
 

Fsmaior

Member
Feb 24, 2014
6
0
0
Sure!

There’s no secret to make it work!
I've used Root Explorer to do the job, so you gonna need it.

1) Download the DeskClock version 1.2, I've tried the 1.1.1 Brazilian version and it didn't work;
2) Make a backup of your Deskclock and the ODEX file;
3) Delete the files Deskclock.apk and the ODEX file;
4) Copy the new Deskclock to the System APP folder (root/system/app);
5) Set permissions to 644, in case of doubt you can check the permissions in any other file inside this folder, all Apps should be set with this permission.
6) Reboot your phone, I used the way shutdown and turn on, but you can do it with Terminal emulator without any problems too
7) Enjoy your new Clock with Stopwatch and countdown.

I’m using it since last week, no problem was found in the Alarm, Countdown and Stopwatch, the only issue is that I’ve mentioned before.

I hope to help you.
If you need anything else just ask me, I’ll be glad to help.
Thanks for the guide. I just tries it and it did not work. Glad I backed the old one up.
 
Last edited:

DMTwo

Member
Apr 24, 2012
10
22
0
Thanks for the guide. I just tries it and it did not work. Glad I backed the old one up.
What kind of problem happen?
Did you get a FC?
I did everything that I wrote and for me it worked.

The permissions are really important, if you forget or put something else it will not work.
Remeber that the ODEX have to be deleted, otherwise it will not work.

Try again and make sure to download the version 1.2.
http://forum.xda-developers.com/attachment.php?attachmentid=2405029&d=1384985032

Well I hope it work for you...
 

Fsmaior

Member
Feb 24, 2014
6
0
0
What kind of problem happen?
Did you get a FC?
I did everything that I wrote and for me it worked.

The permissions are really important, if you forget or put something else it will not work.
Remeber that the ODEX have to be deleted, otherwise it will not work.

Try again and make sure to download the version 1.2.
http://forum.xda-developers.com/attachment.php?attachmentid=2405029&d=1384985032

Well I hope it work for you...
No, I didn't get FC. The app disappeared from the drawer, so I can't access the settings for the alarms and so on. I did exactly as you told me, including the permissions. I copied both the APK and the ODEX original files to a safe place, but when I rebooted the phone and couldn't access the clock no more, I copied the original files back to system/app and rebooted again. This didn't work as well...it seems I lost the original app funcionality forever...To remedy this I installed Alarm Klock from google play, a nice, simple and useful alarm app.. This doesn't really solve the problem though, because this app doesn't have stopwatch and timer.

This version I tried to install is the 1.2 ...maybe I should try the 1.1.1 BR...
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone