yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] fitsnugly:
It's v04 for 5.0.5.x

Trust me, it's v04. v05 is on the OP
[Nexus One Android Development] tr2ride:
Gotcha - thanks for the clarification - I'd suggest changing the name to white-servicesv4-5.0.5-with-clock.zip

Thanks

I know you did some work on this to change the color and appreciate it very much.

Do you have access to Metalhead's source?

Thinking about using this as an entry point for Android dev.

Love this mod - it's my favorite
[Nexus One Android Development] fitsnugly:
Done. As far as the source, PM metalhead. I just deox'd and changed the font color

EDIT: In other news, I did some unscientific testing on how this mod affects battery life:

A few hours with it installed, normal use.

A few hours without it installed, normal use.

It averages a worse battery life by about 1% an hour. Anyone else got any results?
[Nexus One Android Development] fitsnugly:
http://github.com/metalhead8816/android_notification_trackball
[Nexus One Android Development] tr2ride:
outstanding - thanks for the git
[Nexus One Android Development] tr2ride:
metalhead - I noticed in v4 you switched to using the alarm manager instead of a wakelock but then back to wakelock on v5 - am I reading this code correctly? Assuming your commit on march 29th is v5 and commit on march 9 is v4. If I am reading this correctly can you enlighten me on why using alarm manager to wake up wasn't working.

Thanks - this is my first real look at Android code so I could easily be way off base here
[Nexus One Android Development] metalhead8816:
I thought AlarmManager would solve some of the battery related issues. (ie the drainer that is the WakeLock) However, it seemed to make no difference so I just switched back to the WakeLock method.
[Nexus One Android Development] fitsnugly:
v04 breaks something in 5.0.6t2, do not use with it. causes reboots!
[Nexus One Android Development] fitsnugly:
Any updates on a fix for this??? TrackballAlert Pro is out and I will NEED this mod ;)
[Nexus One Android Development] SubyWill:
it works for me, but an update should be in order! i hope! lol.
[Nexus One Android Development] fitsnugly:
Word. 5.0.6t2 doesn't play well with it, and I like this rom a lot ;)
[Nexus One Android Development] metalhead8816:
I'm at least waiting until the official comes out.
[Nexus One Android Development] iammcse:
metalhead8816,

Thanks for your great work. I have the latest TEST verion, do I update this as well?
[Nexus One Android Development] fitsnugly:
Read the thread. v04 worked with 6t1, not 6t2. I haven't tested v05 with 6t2 because the battery percentage is aligned way off, and I'm OCD
[Nexus One Android Development] fitsnugly:
Glad to hear :D
[Nexus One Android Development] imabengalimuslim:
So I attempted to do this with Modaco's Desire ROM. Turns out that it doesn't work. I followed the instructions above, and when I turn on my phone it gets stuck when you first turn on the phone, and there is the screen with the phone colors(the non moving ones) and the unlock icon at the bottom. Just figured I should share.
[Nexus One Android Development] fitsnugly:
It's built for CM only...
[Nexus One Android Development] rori~:
:)..can´t await...only a couple of days CM 506 & TA Pro & TNiS :cool:
[Nexus One Android Development] mahleek20:
There is a definite date for the CM 5.0.6 release?
[Nexus One Android Development] fitsnugly:
might be tonight... t3 seems good to go.
[Nexus One Android Development] roadhead:
v5 destroyed my battery life. I ran it for five days before flashing back to regular CM 5.0.5.3 yesterday morning. So far battery life seems to be much improved. But thats just 1 man's anecdote :)
[Nexus One Android Development] SubyWill:
does this work with 5.0.6 stable?
[Nexus One Android Development] vap1d:
Is the battery life better with 5.0.6 stable?
[Nexus One Android Development] mcgoo99:
this is by far my favorite mod to my nexus one beyond CM's ROM. i just bought you some beer, please update to 5.0.6 when you have a chance. great work!!!
[Nexus One Android Development] fitsnugly:
doubt it. v04 caused reboots on test2. don't wanna try v05 since the battery percentage is off
[Nexus One Android Development] redmongoose:
Works fine for me on 5.0.6.

Updated CM, then re-pushed services.jar, rebooted and works fine :)
[Nexus One Android Development] fitsnugly:
v05? is the battery percentage off center? custom breather color broken?
[Nexus One Android Development] redmongoose:
battery is at 99% looks central to me. I use it in conjunction with trackball alert pro, custom colours all work fine for me. oh yes version v.05 (normal)
[Nexus One Android Development] fitsnugly:
EDIT: Pushed v05 to test. Customer breather works, battery percentage is ok! Seems GOOD :)

Edit 2: Broke custom custom alerts for Trackball Alert Pro (at least one of them), think it might be due to a theme... gonna retry later on a virgin rom

mongoose - did you install trackball, then push this mod, or vice versa?
[Nexus One Android Development] rori~:
..0.5 works for CM 506 ?... uiii, than I got to try it..

Sent from my Nexus One using the XDA mobile application powered by Tapatalk
[Nexus One Android Development] redmongoose:
I upgraded from 5.0.5.3 - no wipe, patched trackball, reboot, pushed .jar, reboot - all works fine

All trackball alerts are working fine, cycling in order.
[Nexus One Android Development] rori~:
Damn, just saw that...hmmm, not good!

Edit: ...anyway..Nandroid and pushed it..will see how it performs :-)

Edit2:

- gmail & phone flashing red & blue - perfect!!

- percent centered as before!
[Nexus One Android Development] fitsnugly:
OK, def was a theme. v05 is working w/ trackball alert pro on 5.0.6 un-themed. :eek:
[Nexus One Android Development] rori~:
Yeah, works great so far (only theme I got is the status bar here)
[Nexus One Android Development] fitsnugly:
might have been that new avlock mod I flashed too... i'm testing each thing as I go to figure it out

EDIT: Used a morph instead of a theme, and didn't flash the avlock mod.

Works, but I still think the battery percentage is off to the right just a tad..
[Nexus One Android Development] fitsnugly:
this is what I mean about the battery percentage, before and after I morph a theme
[Nexus One Android Development] zidane:
yes the new battery percentage is also way off for me
[Nexus One Android Development] fitsnugly:
made a morph for the kspec battery to move it to the right and center the percentage, attached for all!
[Nexus One Android Development] fitsnugly:
might have spoken too soon, this isn't working now...
[Nexus One Android Development] mcgoo99:
works for me on 5.0.6 as well, also plays nice with trackball alert too. can't speak to the battery percentage being off center, looks ok to my OCD :)
[Nexus One Android Development] fitsnugly:
anyone's else breather light go away?
[Nexus One Android Development] rori~:
sorry, never cared about breathing light.. when is that suppose to flash?

Sent from my Nexus One using the XDA mobile application powered by Tapatalk
[Nexus One Android Development] PhantomRampage:
So how is it working for those of you who have installed this after updating to CM 5.0.6?

I want to use it but i'm afraid it wont run stable enough
[Nexus One Android Development] rori~:
..till now it´s stable
[Nexus One Android Development] FastMhz:
Am I doing something wrong?

I have a missed call (blue), text (green), gmail (red). Yet the only colors that flash are green and red. How come no blue?
[Nexus One Android Development] rori~:
I can´t tell you, cause I never had 3 notifications, since I use this....(since yesterday:) )
[Nexus One Android Development] rossy_k:
I have tested all three notifications, (missed call, missed SMS, and email) and all three illuminate sequentially. I'm on CM 5.0.6.
[Nexus One Android Development] FastMhz:
I went ahead and re-installed Trackball Alert. Everything is good! Thank you! I'm on 5.0.5.3.
[Nexus One Android Development] ogdobber:
awesome! keep up the great work!

...maybe your working on it...but alternate trackball. i.e. if i get an email and a talk it will alternate between those two colors (red,blue,red blue,etc.)
[Nexus One Android Development] Chosen_on184:
Couple questions

1. should pro and regular version run side by side or they are not dependent of each other ?

2. I just bought the pro version and i am on newest cm. How do i add other apks to the list of notifications to control ?
[Nexus One Android Development] rori~:
You are in the wrong thread...

here you go:

- Trackball Alert v1.0

- Trackball Alert PRO (v1.0.1)
[Nexus One Android Development] Chosen_on184:
Ahh thanks bro
[Nexus One Android Development] Treatcon:
CyanogenMod 5.0.6-N1

RA-nexus-v1.7.0 CM Version

EPE54B

HelixLauncher2.0.7 beta 2

Trackball Alert PRO 1.0.1

All is well and working as advertised. I'm using it with...

Built in:

Missed calls, new voice mail

Apps:

Handcent SMS, Gmail Notify

Would be a warm welcome to the next build of CM if you ask me!! :cool:

**EDIT**

Where are my manors... Many thanks for the FREE and much needed mod.
[Nexus One Android Development] zidane:
will a new version of this be released?

because v5 is causing my live wallpaper on CM 5.0.6 to crash everytime i tap on the background
[Nexus One Android Development] fitsnugly:
v04 was doing that to me, but v05 isn't?
[Nexus One Android Development] zidane:
on 5.0.6?

im using the v5 with white text
[Nexus One Android Development] fitsnugly:
yeap. v05, white text, no clock. i was shocked it worked, I did have to custom morph the battery to move it over to center the battery percentage text, but it's working fine here
[Nexus One Android Development] zidane:
i dont know, thats weird!

i did several wipes to confirm that

and yeah i applied a morph as well and my battery is nicely aligned.
[Nexus One Android Development] fitsnugly:
I've attached a metamorph I've been using of a bunch of stuff put together:

KSpec Kustom 2.0

KSpec's Sexy Bits

Additional Desire Green Highlight Graphics

Successions v05 , white text , no clock

Recenter'd KSpec Battery Icon

I didn't do any work except put all those in the same zip, credit goes out to all the various creators of each morph and mod.

You can try and see if morphing this works?

I went 5.0.6 -> Trackball Alert Pro -> THIS morph.
[Nexus One Android Development] utmoose:
thanks for the work, but how do we install this? it doesnt install in recovery

also, do i need the trackball alert program for this to work correctly?

thanks
[Nexus One Android Development] fitsnugly:
metamorph to apply and no I don't think u need tbalert
[Nexus One Android Development] utmoose:
i metamorph and it extracts the file, then says "the theme you selected is invalid because the theme control file is invalid and cannot be read"

any ideas?
[Nexus One Android Development] fitsnugly:
works on mine... have you tried exacting first?
[Nexus One Android Development] utmoose:
i was about to edit my last post and say that was the problem

thanks for the help, installing it now

edit: nice set of stuff here, only bad part was having to reinstall all my widgets and settings
[Nexus One Android Development] fitsnugly:
rock on lemme know
[Nexus One Android Development] tallen3:
Wow, great work no problems at all when applying this morph, is it possible for you to do one with the clock. Thanks for saving so much time I love the new look from these morphs.
[Nexus One Android Development] fitsnugly:
just replace the services.jar with the white text, with clock from the OP
[Nexus One Android Development] tallen3:
sorry, you're conversing with an idiot what's the OP ?
[Nexus One Android Development] tallen3:
Sorry again you meant original post, but I don't have the skills to change something in zipped up files and I don't want to mess anything up. Its all working perfectly I'm not going to tempt fate!
[Nexus One Android Development] Chosen_on184:
yea i flashed it and it works .. fine ..
[Nexus One Android Development] fitsnugly:
install via the instructions in the original post, or use 7zip to replace the services.jar in the metamorph zip.
[Nexus One Android Development] agriff:
...or you can upzip the morph with Metamorph, but do not apply the morph. back out just before then. then you can just go into the morph folder on your sd card and switch out the .jar. Finally, apply the morph as normal, with the correct .jar.
[Nexus One Android Development] zidane:
which one of the folders apply to recentering the battery icon?,

also if possible, would you mind posting a screenshot of all other features from this morph?

EDIT: i have just realized that when i push the v4 services.jar, the battery goes back to center, but with v5 it doesnt.

so again, anyone know how to just move over the battery % back to center?
[Nexus One Android Development] david1171:
It's kind of a tedious process if you haven't used baksmali/smali.

After baksmali-ing the classes.dex in services.jar for CM 5.0.6, then you need to go to com/android/server/status/StatusBarIcon.smali and change

.line 99
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;

new-instance v7, Landroid/widget/FrameLayout$LayoutParams;

const/16 v8, 0x15

invoke-direct {v7, v9, v9, v8}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

invoke-virtual {v6, v7}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

to

.line 99
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;

new-instance v7, Landroid/widget/FrameLayout$LayoutParams;

invoke-direct {v7, v9, v9, v11}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

invoke-virtual {v6, v7}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

and change

.line 105
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;

const/16 v7, 0x11

invoke-virtual {v6, v7}, Landroid/widget/TextView;->setGravity(I)V

to

.line 105
iget-object v6, p0, Lcom/android/server/status/StatusBarIcon;->mNumberView:Landroid/widget/TextView;

invoke-virtual {v6, v11}, Landroid/widget/TextView;->setGravity(I)V

I just copied the entire StatusBarIcon.smali from CM 5.0.5.3 into CM 5.0.6, but I think those are really the only 2 things that need to be changed to get the text back to its old set up. Since I played around with {v7, v9, v9, v11} some and it changed the position, so I believe those 2 areas are of the most importance.

PSPad has an amazing text diff feature.
[Nexus One Android Development] zidane:
i appreciate your response to my problem.

however all of this seems a bit too risky to me, and i dont think i even know where to start.

i guess i'll just stick with the mis-aligned %.

again, sorry for taking your time.
[Nexus One Android Development] fitsnugly:
they way I did it was to morph a wider battery icon with more dead space on the left side. sneaky sneaky. :)
[Nexus One Android Development] zidane:
yeah that would work!

but the thing is i want to use the android guy battery icon.

its a bit tough with that!
[Nexus One Android Development] david1171:
It was a little harder than I thought it to be. I just did a thorough change by comparing the smali files of each classes.dex with the smali file that has the text to the left and didn't change anything that looked like it was particular to each version of the mod (i.e. no clock, white text, black text). I have only tested the white text version because I was getting tired of f-ing with it, but hopefully the other two work as well.

They are named the same as they are in the OP, so whichever version you used before, you would download the one with the same name from here.

These can be flashed in recovery, or you can pull the services.jar out of framework and push it like you would push anything else.

Nandroid before flashing any of these, especially the one with untested by the name.

Servicesv05 - UNTESTED

http://android-theme-minus.googlecode.com/files/servicesv05.zip

Servicesv05-white - TESTED

http://android-theme-minus.googlecode.com/files/servicesv05-white.zip

Servicesv05-white-noclock - UNTESTED

http://android-theme-minus.googlecode.com/files/servicesv05-white-noclock.zip
[Nexus One Android Development] zidane:
works perfectly!

many thanks!
[Nexus One Android Development] david1171:
Which version did you try so I know whether or not I can remove a tested label.
[Nexus One Android Development] zidane:
i tried the tested as i wanted the white text with clock
[Nexus One Android Development] djnutz:
Tested the white and works perfect so far. This is my first time using it with Trackball Pro. Fregin' sweet! Kind of a little trackball rave if you will - so nice to know which notifications I have without picking up the phone.
[Nexus One Android Development] MontAlbert:
so, are we sure this doesn't break anything in 5.0.6 services.jar? i am finding it hard to believe nothing changed in services.jar from 5.0.5.3 to 5.0.6... wish it was true though as this combined with trackball alert pro is insane!
[Nexus One Android Development] fitsnugly:
breather light is gone. ie plug in the USB, breather light does not flash anymore
[Nexus One Android Development] fitsnugly:
Well crap, now I have to trash my battery morph :) Thanks david!
[Nexus One Android Development] Cynicism123:
Will there be a version for 5.0.6 without any tweaks I have to make myself?
[Nexus One Android Development] jerrycycle:
Thanks for the .zip david11.71. I used the white text.
[Nexus One Android Development] pershoot:
hi metalhead. is your latest source on git? has the battery drain issues been fixed?
[Nexus One Android Development] fitsnugly:
I believe the drain issues still exist, thus why cyan won't put it into his rom. but I don't care since I'm almost always around a charger (work, car, home)...
[Nexus One Android Development] metalhead8816:
Latest source is on git. Haven't gotten around to looking into the battery issue. Been working crazy busy on a game project for school.
[Nexus One Android Development] carnegie0107:
No on Enom's

I figured it wouldn't work on TheOfficial, but I didn't see anybody say they had tried it, so I went ahead and pushed it. Just to let everyone know, it's a no-go. Boot loop. Actually, the animation just freezes, but logcat loops. I might take a look at the source when I get home tonight... but I probably won't haha.
[Nexus One Android Development] deprecate:
that's the spirit! :D
[Nexus One Android Development] rori~:
Maybe, but I havent noticed that yet...
[Nexus One Android Development] tiran:
Works like a charm on CM 5.0.5.6

Really love it thx for that.
[Nexus One Android Development] drake1:
Tried it on 5.0.6 nexus one CM and a lot of my apps dissapeared. Lucky I had done a nandroid backup.
[Nexus One Android Development] SS2006:
will this work on CM 5.06?
[Nexus One Android Development] rori~:
it works for me...
[Nexus One Android Development] SS2006:
Oh ok thanks

You didn't lose any apps, as the above poster mentioned?
[Nexus One Android Development] Treatcon:
It works on 5.0.6, but does not have the coding of 5.0.6. It's still written with 5.0.5.3 code. I was hoping that the mod author would allow the Trackball Alert Pro app author to pick this up and code it in as an addon. Fingers crossed!
[Nexus One Android Development] rori~:
no, didn't loose any...
[Nexus One Android Development] wesclemens:
This works whitout problems with Trackball Alert Pro. The source is also on git hub I believe. The only down side is this kills your battery life.

Sent from my Nexus One using the XDA mobile application powered by Tapatalk
[Nexus One Android Development] paulk_:
Found a bug. When handcent sms' reminder is turned on (sms alert x mins after the sms is sent if you don't mark it as read), the trackball will still continue blinking if you mark the sms has read after a reminder. i.e. I have my reminder set to go off after 5 mins, after the reminder goes off and I mark the sms as read by closing the popup notification, my trackball still blinks when I turn my screen off after that even though there are no unread sms.

Have to reboot my phone to solve this.

[EDIT] just to clarify things, the reminder means that the sms alert goes off when the sms arrives, but a reminder can be set to go off again every x mins after the sms was received and not read for y times.
[Nexus One Android Development] SS2006:
why would it hurt the battery, cause of the constant flashing? (by default it does neways..but white)

or something internal
[Nexus One Android Development] paulk_:
By default when the trackball flashes, the system is still sleeping. But in order to change the color between each flash, the system has to wake up and change the color. So it consumes more battery (I think this is what I read in this thread, could be wrong).
[Nexus One Android Development] qvert:
testet it on modaco custom rom 1.7

it seems to be not working, don't get any notifacation led flashing expect from touiteur
[Nexus One Android Development] TapaH:
Ihave a problem after installing - led flashing for a few times after message appears and then stop working until I'll press power button, then it will continue blinking as it have too.
[Nexus One Android Development] denimjunkie82:
subscribing...
[Nexus One Android Development] eabinsan:
just in case you didn't know: you can also select "subscribe to thread" from the thread tools menu near the top-right of the page.
[Nexus One Android Development] rotohammer:
I ran a test, sent an email and a text message to myself, and I got two successive lights (pink and yellow). After reading them, I have the email color (pink) flashing continuously. every two seconds.

After reboot, trackball blinking has stopped.

I'll see if I can figure out the exact sequence of events that triggered it.

Edit: It just appears that after reading an email, it doesn't reset blink to off.

FWIW, I use k-9 as my email client, although I do have the stock email app configured as well.
[Nexus One Android Development] TapaH:
How to uninstall this? )
[Nexus One Android Development] metalhead8816:
Nandroid restore or re-flash whatever ROM you were using.
[Nexus One Android Development] metalhead8816:
I've kind of been wondering how bad this is on battery life as well, because this is basically what has to be done. Can't really see any way around it.
[Nexus One Android Development] gavindi:
Yep. Happening to me too. :( Bummer.
[Nexus One Android Development] metalhead8816:
There is an option under Handcent to make a custom flash rate. That was what I was talking about.
[Nexus One Android Development] kep0ne:
Also having the issue where trackball wont light up anymore when screen is off. Power on will fix it, but then it'll stop again once the screen dims.

Sitting here typing this, just noticed the lights flash on again...but it's very sporadic. Fast green blinking about 5 times, then one blue flash (twidroid)...then it stopped completely.

Hope to get this working again at some point, it was a nice mod.
[Nexus One Android Development] rotohammer:
Mine works the same way. I didn't realize it was not working as intended. :)
[Nexus One Android Development] deprecate:
Yup, this works quite well with TCN2!
[Nexus One Android Development] metalhead8816:
You get multiple for the same color because you get several notifications with the same color. I missed this initially and I have a fix. It will be uploaded later tonight.
[Nexus One Android Development] metalhead8816:
A log of this would be nice. Not really sure where to start with this since I am not seeing this issue.
[Nexus One Android Development] kep0ne:
I would post one but its been acting fine now...if it acts up, how do I go about getting a log for you?
[Nexus One Android Development] metalhead8816:
1) Hook your phone up to your comp

2) Open up a command prompt

3) adb logcat

4) Copy the output and put it up on http://pastebin.com/

5) PM me the link