[MOD][TUT]How To Add Seconds To The Statusbar Clock

Did you find this tutorial useful?

  • Yes

    Votes: 35 87.5%
  • No

    Votes: 5 12.5%

  • Total voters
    40

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
  • Like
Reactions: Ticklefish

Ticklefish

Recognized Themer
Oct 27, 2011
6,743
8,534
263
Hampshire, UK
Sorry, you are limited to 8 thanks per day!!!

ticklefish can yhu help me with dis please, help me check dis link... very urgent!!!

http://forum.xda-developers.com/showpost.php?p=35743334&postcount=44

---------- Post added at 02:24 AM ---------- Previous post was at 01:35 AM ----------

Dis is it brov...... http://www.mediafire.com/?212tlo2vyq6522u
And you're still not using Tickle My Android..? Sigh..

Okay, this problem could be caused by an out-of-date apktool and\or aapt. You need to ensure you have the very latest versions.

If you're decompiling serajr's SystemUI.apk, your framework-res.apk may be causing the problem. Try decompiling without installing anything first.

I'll get to work on your files as soon as I can.

Sent from my SK17i using xda premium
 

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
And you're still not using Tickle My Android..? Sigh..

Okay, this problem could be caused by an out-of-date apktool and\or aapt. You need to ensure you have the very latest versions.

If you're decompiling serajr's SystemUI.apk, your framework-res.apk may be causing the problem. Try decompiling without installing anything first.

I'll get to work on your files as soon as I can.

Sent from my SK17i using xda premium
i just want something simple brov... TMA is a bit complex for me!!!

can yhu help me with updated Apktool please?

thanks... Best regards!
 

Ticklefish

Recognized Themer
Oct 27, 2011
6,743
8,534
263
Hampshire, UK
i just want something simple brov... TMA is a bit complex for me!!!

can yhu help me with updated Apktool please?

thanks... Best regards!
I'll forgive you then. :)

I can't link you yet but do a search for ibotpeaches. They've taken over development of apktool and its that thread that has the apktool and aapt that you'll need.

Or, you can just take them from the tool_files folder of my tool..

Sent from my SK17i using xda premium
 
  • Like
Reactions: whalesplaho

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
I'll forgive you then. :)

I can't link you yet but do a search for ibotpeaches. They've taken over development of apktool and its that thread that has the apktool and aapt that you'll need.

Or, you can just take them from the tool_files folder of my tool..

Sent from my SK17i using xda premium

thanks brov.. i ll get it from TMA!!!

when i delete framework-res.apk & SemcGenericUxpRes.apk, i couldnt decompile tha SystemUI.apk.... popping error!
 
  • Like
Reactions: Ticklefish

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
SAndy thanks, God Bless yhu!!! :)

Tickle am very grateful, everything working fine now.... i use apktool files from TMA & now de/recompiling!!!! but tha clock shows AM/PM, is it possible to disable cos i already disable AM/PM from showing!
 

Ticklefish

Recognized Themer
Oct 27, 2011
6,743
8,534
263
Hampshire, UK
SAndy thanks, God Bless yhu!!! :)

Tickle am very grateful, everything working fine now.... i use apktool files from TMA & now de/recompiling!!!! but tha clock shows AM/PM, is it possible to disable cos i already disable AM/PM from showing!
Everything's possible! Probably...

How did you disable it from showing?

Sent from my SK17i using xda premium
 
  • Like
Reactions: whalesplaho

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
Everything's possible! Probably...

How did you disable it from showing?

Sent from my SK17i using xda premium
i disable it from showing AM/PM by editing integers.xml.... like dis but it only works with normal clock code not dis new one with seconds:-

Original Code::::

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <integer name="config_maxNotificationIcons">5</integer>
    <integer name="config_clock_am_pm_style">0</integer>
</resources>

so i edited
Code:
<integer name="config_clock_am_pm_style">0</integer>
to dis
Code:
<integer name="config_clock_am_pm_style">2</integer>
 

Ticklefish

Recognized Themer
Oct 27, 2011
6,743
8,534
263
Hampshire, UK
i disable it from showing AM/PM by editing integers.xml.... like dis but it only works with normal clock code not dis new one with seconds:-

Original Code::::

Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <integer name="config_maxNotificationIcons">5</integer>
    <integer name="config_clock_am_pm_style">0</integer>
</resources>

so i edited
Code:
<integer name="config_clock_am_pm_style">0</integer>
to dis
Code:
<integer name="config_clock_am_pm_style">2</integer>
Ah..that was going to be the subject of my next tutorial...lol

The am/pm is hard-wired into the code. The only way you can get rid of it is by coding up another version in java...

But, if you select 24 hours for your clock in the settings menu, that'll sort it out.

Sent from my SK17i using xda premium
 
  • Like
Reactions: whalesplaho

whalesplaho

Senior Member
Feb 1, 2012
10,653
2,655
253
Treasure Island
Ah..that was going to be the subject of my next tutorial...lol

The am/pm is hard-wired into the code. The only way you can get rid of it is by coding up another version in java...

But, if you select 24 hours for your clock in the settings menu, that'll sort it out.

Sent from my SK17i using xda premium
hehehehehehehehe..... NP brov, yhu can still make it for newbies just incase!!!

yeap, 24 hrs format is okay but yhu know its aving 2-digits unlike 12 hrs format which is 1-digit but NP brov, its okies with 24 hr format!!!

updated my thread brov...... http://forum.xda-developers.com/showthread.php?p=32255212