| NEWS | | |  | | FORUMS | | |  | | FREEWARE | | |  | | ABOUT US | | |  | |
02-06-2007, 08:02 AM
|
#1 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| ShowBattery 0.01 alpha http://www.1src.com/freeware/fileinfo.php?id=1650
This alpha-test software replaces the exclamation mark in the status bar of a T3/T5/TX/LifeDrive with a battery, but keeps the attention icon functioning as before (e.g., if you get an alert, now you will get an alternating exclamation mark and battery, and you can click on it as before).
Note: If you install this over a custom DIA skin, you will have to reload that skin after disabling ShowBattery.
It includes full source code, so you can modify it to your heart's content. It's all a very simple thing, not anything as sophisticated as the plugins Dmitry is working on. But it does the trick for me.
In case you're wondering if it'll slow down your system and how, I'll tell you how it works. It checks the battery state every minute while the device is running, as well as when device is turned or put in or out of cradle. If the state is not changed from last time (the change resolution is: 16 states for battery, plus one charging state), then it does nothing. If the state is changed, then it modifies three icons in the statusbar skin, and forces a redraw of the attention plugin by telling the attention plugin that the display has been rotated (though of course it hasn't).
It uses battery icons in StatusBarResources if there are any such (I have such because I have a private build of myKbd that handles battery icons) or else uses the icons from ShowBattery.prc.
USE AT YOUR OWN RISK
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi
Last edited by pruss : 02-06-2007 at 08:07 AM.
|
| |
02-06-2007, 08:42 AM
|
#2 | | Registered User
Join Date: Sep 2006
Posts: 416
| That's pretty neat, I'd like to see what Church Punk could do with the icon to make it blend with his OSX DIA?
Are you supossed to get a % or anything with a tap and hold?
__________________
T|E -> TX
|
| |
02-06-2007, 08:49 AM
|
#3 | | It's superdad!
Join Date: Jan 2004 Location: Larchmont, NY
Posts: 2,944
| Alex,
This sounds interesting, but I'm not sure what you mean by this: Quote: |
Note: If you install this over a custom DIA skin, you will have to reload that skin after disabling ShowBattery.
|
Do you mean I have to turn it off to have a custom DIA installed (I use mykbd to combine an customized Atomik keyboard with the blackhide DIA and statusbar by Velo) and then if I turn it back on the customizations won't work, but the battery app will continue to work, or if I disable the showbattery app I have to reload the skin via mykbd, or something else entirely?  |
| |
02-06-2007, 08:53 AM
|
#4 | | Registered User
Join Date: Sep 2006
Posts: 416
| When I tapped 'post reply' I went into a rest loop. After a warm reset statbat was off so I reloaded my myKbd Ddia skin and all is well without this statbat app.
__________________
T|E -> TX
|
| |
02-06-2007, 08:54 AM
|
#5 | | Recovering Palm Fiddler
Join Date: Jan 2006
Posts: 1,334
| Here's what I've found. I have a custom DIA-StatusBar skin installed via mySkin. If I load and turn on ShowBattery, the alert notice icon is replaced with the battery icon, which matches the default colors for the TX. If I then turn ShowBattery off, nothing is changed. The battery icon continues to be displayed until I reload the custom skin.
If I then switch to, say, the default DIA skin, it shows the alert notification icon, not the battery icon, even though ShowBattery still on. If I turn ShowBattery off and then back on again the battery icon reappears.
A nifty application, but one that will undoubtely aggravate the skin makers. 
__________________
Palm V --> (Palm Vx+Palm IIIc) --> Palm m515 --> Palm TX --> iPhone --> iPhone 3G
Last edited by FerdFerd : 02-06-2007 at 08:58 AM.
|
| |
02-06-2007, 08:54 AM
|
#6 | | Registered User
Join Date: Sep 2006
Posts: 416
| 'dude that's how you remove the icon.
__________________
T|E -> TX
|
| |
02-06-2007, 09:00 AM
|
#7 | | Registered User
Join Date: Sep 2006
Posts: 416
| ditto FerdFerd, wondering why I got the reset loop? Off to try again. Anybody, did you test the alert indicator with an alarm, I did.
__________________
T|E -> TX
|
| |
02-06-2007, 09:13 AM
|
#8 | | Registered User
Join Date: Sep 2006
Posts: 416
| I turned SB back on, tested it with an alarm and all seems well???
__________________
T|E -> TX
|
| |
02-06-2007, 09:43 AM
|
#9 | | Recovering Palm Fiddler
Join Date: Jan 2006
Posts: 1,334
| Just checked an alarm. No reset loop. The custom skin alert icon is displayed when the alarm sounds. The battery icon returns when the alarm is dismissed. In other words, all is well here.
__________________
Palm V --> (Palm Vx+Palm IIIc) --> Palm m515 --> Palm TX --> iPhone --> iPhone 3G
|
| |
02-06-2007, 09:53 AM
|
#10 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| Quote: | Originally Posted by FerdFerd Here's what I've found. I have a custom DIA-StatusBar skin installed via mySkin. If I load and turn on ShowBattery, the alert notice icon is replaced with the battery icon, which matches the default colors for the TX. If I then turn ShowBattery off, nothing is changed. The battery icon continues to be displayed until I reload the custom skin. |
Yes, this is what I meant by saying that you needed to reload the skin after turning off ShowBattery. Quote: |
]If I then switch to, say, the default DIA skin, it shows the alert notification icon, not the battery icon, even though ShowBattery still on. If I turn ShowBattery off and then back on again the battery icon reappears.
|
Right. ShowBattery doesn't know that a new skin was loaded, so it assumes that the icon it had put up is still there.
The battery icon would have shown up anyway for you once the battery ran down a little. Quote:
A nifty application, but one that will undoubtely aggravate the skin makers. |
It's easy enough to put the battery icons into the skin--I have a version of myKbd that handles battery icons.
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| |
02-06-2007, 09:56 AM
|
#11 | | Registered User
Join Date: Mar 2003 Location: Waco TX
Posts: 4,440
| Quote: | Originally Posted by pokeypda When I tapped 'post reply' I went into a rest loop. After a warm reset statbat was off so I reloaded my myKbd Ddia skin and all is well without this statbat app. |
When you turned on ShowBattery, did you already have a myKbd skin active?
I'll have to look over the reset handling to see what could be triggering a reset loop. (Of course it might have been some other app, but that's not that likely.) I suppose you didn't get any error messages?
__________________
Alex Pruss
For my shareware (FontSmoother, myKbd, mySkin, Accenter, FastLaunch and AtomClock) and freeware PalmOS software, go here: http://pruss.mobi |
| |
02-06-2007, 10:03 AM
|
#12 | | Registered User
Join Date: Sep 2006
Posts: 416
| Yes, I did have a myKbd skin active, no messages.
__________________
T|E -> TX
|
| |
02-06-2007, 10:19 AM
|
#13 | | Recovering Palm Fiddler
Join Date: Jan 2006
Posts: 1,334
| Quote: | Originally Posted by pruss (Of course it might have been some other app, but that's not that likely.) I suppose you didn't get any error messages? | pokeypda indicated earlier that StatBatt was running when the reset loop appeared. Is that the likely conflict, since both of these modify the status bar?
__________________
Palm V --> (Palm Vx+Palm IIIc) --> Palm m515 --> Palm TX --> iPhone --> iPhone 3G
|
| |
02-06-2007, 10:28 AM
|
#14 | | Software engineer/hacker
Join Date: Jan 2004 Location: Silicon Valley, CA
Posts: 5,061
| no. pruss modifies icons, whereas i use the api that statusbar library provides
__________________ Annoying me is NOT an approved way of encouraging me to produce software My software:PowerSDHC, PowerDrive, nuRom, UDMH, warpSpeed, PowerDiGi, brightnessFix, etc... Get it all here:http://www.PalmPowerups.com |
| |
02-06-2007, 11:32 AM
|
#15 | | Registered User
Join Date: Sep 2006
Posts: 416
| FerdFerd: no I removed DG's app and reset before installing the AP app. I just refered to ShowBattery using the wrong name.
__________________
T|E -> TX
|
| | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 09:24 PM. | |