Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,768,353 Members 47,284 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Toggle Am/Pm in status bar clock *2/18/2011*

Tip us?
 
s0niqu3
Old
(Last edited by s0niqu3; 10th March 2011 at 10:04 PM.) Reason: removed the flashable zip since it was outdated and buggy, please use posted source to port to newer roms that don't already include this
#1  
s0niqu3's Avatar
Senior Member - OP
Thanks Meter 389
Posts: 716
Join Date: Feb 2005

 
DONATE TO ME
Default [MOD] Toggle Am/Pm in status bar clock *2/18/2011*

Hey again everyone,

Well, after several days of pulling my hair out, and many, MANY private messages to Untermensch for smali syntax help and debugging, I've finally finished adding a user-selectable option to toggle the AM/PM flag in the status bar clock!

Unlike the other various mods floating around, this will also not affect those that use 24-hour time, and does not matter if you use a custom font either.

Here's some screenshots of the toggle working:


UPDATE 2/17/2011 5:47pm: Source posted. If you plan on adding this to the 5/6 lockscreen mod, then you'll likely have to change the resource id's for the new strings in settings.apk from the id's I used.

UPDATE 2/18/2011 9:25am: I found a bug last night that would prevent auto-time from disabling. I've already fixed it, and have attached the newest, fixed, DateTimeSettings.smali file (in zip format.) I'll be out of the house for most of the day, but will generate a new diff file once I get home. In the meantime, please download the new zip in addition to the old source zip.

Anyway, I hope everyone enjoys this, and huge thanks to untermensch for his help!

Cheers, =)

P.S. I've never been one to ask for donations, I don't think they should ever be necessary for people to contribute and give back to the community. But I finally added the paypal "donate" button under my username for anyone that wants to donate to say thanks.

P.P.S. Next mod on the agenda (assuming it doesn't drive me completely crazy) accurate battery % via code, no more ~100+ png images added to framework-res.apk =)
Attached Files
File Type: zip AM_PM_toggle_source.zip - [Click for QR Code] (231.9 KB, 613 views)
File Type: zip DateTimeSettings.zip - [Click for QR Code] (5.8 KB, 393 views)
~Jocelyn
@jocelyndev
fork me on github
Apparently posting personal signatures outside of this little block is too offensive for some.
The Following 18 Users Say Thank You to s0niqu3 For This Useful Post: [ Click to Expand ]
 
hitman818
Old
#2  
hitman818's Avatar
Senior Member
Thanks Meter 92
Posts: 2,002
Join Date: Aug 2010
Great job!!

Sent from my SGH-T959 using XDA App
 
Romanbb
Old
#3  
Romanbb's Avatar
Recognized Developer
Thanks Meter 7029
Posts: 3,587
Join Date: Sep 2009

 
DONATE TO ME
Yesssss. Wtb source

Thank you. Can't wait to get this added

Sent from my SGH-T959 using Tapatalk
 
Whitehawkx
Old
#4  
Whitehawkx's Avatar
Recognized Developer
Thanks Meter 9346
Posts: 2,379
Join Date: Oct 2010
Location: Emerald City

 
DONATE TO ME
You always do some of the coolest mods S0niqu3. Once again outstanding job.

Oh, and you know I will...
@Whitehawkx - Github - #TeamKang @ Freenode

donate
 
dasunsrule32
Old
#5  
Recognized Developer
Thanks Meter 2007
Posts: 2,292
Join Date: Oct 2009
Location: Gilbert, AZ

 
DONATE TO ME
Works perfect with the files I pushed, just need the source (whenever you get a chance, so I can make the clock white) Thank you!
 
s0niqu3
Old
#6  
s0niqu3's Avatar
Senior Member - OP
Thanks Meter 389
Posts: 716
Join Date: Feb 2005

 
DONATE TO ME
Updated OP with a download containing the source.

Cheers, =)
~Jocelyn
@jocelyndev
fork me on github
Apparently posting personal signatures outside of this little block is too offensive for some.
 
Romanbb
Old
#7  
Romanbb's Avatar
Recognized Developer
Thanks Meter 7029
Posts: 3,587
Join Date: Sep 2009

 
DONATE TO ME
Quote:
Originally Posted by s0niqu3 View Post
Updated OP with a download containing the source.

Cheers, =)
add that little icon under your name
 
dasunsrule32
Old
#8  
Recognized Developer
Thanks Meter 2007
Posts: 2,292
Join Date: Oct 2009
Location: Gilbert, AZ

 
DONATE TO ME
Quote:
Originally Posted by s0niqu3 View Post
Updated OP with a download containing the source.

Cheers, =)
Sweet! Thanks!
 
BowLow
Old
#9  
Senior Member
Thanks Meter 7
Posts: 109
Join Date: Aug 2010
Aweeesooomee it would be godly if you can get a toggle to hide the whole clock too... still GREAT work downloading now
Faithfully Using Sweet Honey 2.7.1
O'Ced 2.2 Overstock---"OVER 2000?!?!?!?!?!?!"
 
s0niqu3
Old
#10  
s0niqu3's Avatar
Senior Member - OP
Thanks Meter 389
Posts: 716
Join Date: Feb 2005

 
DONATE TO ME
Quote:
Originally Posted by BowLow View Post
Aweeesooomee it would be godly if you can get a toggle to hide the whole clock too... still GREAT work downloading now
LOL,

At this point, it'd be pretty easy for me to add that option, I might look into that once I port this to kb1/bionix-v 1.2.1 for myself.

Yep, its finally time to upgrade my rom, I'm not even sure what build I started all my mods on anymore. I've pushed so many updated system files over the past few weeks, I never felt the need to flash an entirely new rom.

Cheers, =)
~Jocelyn
@jocelyndev
fork me on github
Apparently posting personal signatures outside of this little block is too offensive for some.

The Following User Says Thank You to s0niqu3 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes