[19 May 2009]iBattery v. 0.51

Search This thread

allelimo

Senior Member
May 11, 2005
191
7
iBattery is just another "taskbar meter", based on LVMTopBat, an open source project by levenum that you can find here: http://forum.xda-developers.com/showthread.php?t=277790

When it is possible I prefer to use a opensource project over a freeware or a paid software, and LVMTopBat is a great software, lightweight and well written, levenum did a great job :)
Of course there are things in it that I wanted to change, and so here it is iBattery.

attachment.php

2 February 2009 v. 0.2 - First public release
14 April 2009 v. 0.5 - changes:
- Fixed: landscape mode
- Fixed: square screens support
- Changed: single color skin format
19 may 2009 v. 0.51 - changes:
- Fixed: on vga devices the skin height (3 px) is no more stretched to 6 px (thanks BoSeWit!)

Changes from LVMTopBat are:
1 - Skinnable: by default iBattery draws a light grey bar, but you can change the bar color with a bitmap.
By default iBattery uses a single color for all the battery states (full charge, low charge, charging, etc.) but you can use a 12x18 pxs bitmap to specify a different color for a different state (see FAQ)
2 - Height: is now 3px instead of 4px
3 - Width: is now "full screen", no right or left margins
4 - If you tap on iBattery on the today screen, nothing is launched

Installation
Execute the cab and install it to the default location (Windows directory), then soft-reset your device.

FAQ:
1 - does iBattery work with WM version x?
I don't know, try it and tell me!
I have a single WM6 device and iBattery works with it.

Reported from users:
- Works with Touch Diamond WM 6.5
- Works with HTC Wizard WM 6.1
- Works with BA WM 6.5 21169

2 - does iBattery works with screen resolution x?
I don't know, try and tell me!
I have a single QVGA device and iBattery works with it.

3 - does iBattery works with device x?
I don't know, try and tell me!
I have a single device (Touch Dual) and iBattery works with it.

4 - does iBattery works together with program x?
I don't know, try and tell me!
I have a single device and I don't use every single available application...

5 - How to skin iBattery

Multiple colors:
Put a 12x18 bitmap named "iBatteryBmp.bmp" in Windows directory
lines 0 to 2: used for background image
lines 3 to 5: used for "Critical charge" status
lines 6 to 8: used for "Low charge" status
lines 9 to 11: used for "High charge" status
lines 12 to 14: used for "Charging" status
lines 15 to 17: used for "Unknown" status

Single color:
Put a 12x18 bitmap named "iBatteryBmp.bmp" in Windows directory
lines 0 to 2: used for background image
lines 3 to 5: color of the meter
lines 6 to 8, 9 to 11, 12 to 14 and 15 to 17: same as line 3 to 5... :)

Sources
The source code (under GPL v.3) is available at Google Code:
http://code.google.com/p/ibattery/

Downloads:
the latest build and a zip with 2 skinning examples.
 

Attachments

  • iBattery_screenshot.PNG
    iBattery_screenshot.PNG
    8.9 KB · Views: 24,361
  • skin_examples.zip
    430 bytes · Views: 1,412
  • iBattery051.CAB
    11.3 KB · Views: 1,695
Last edited:

motisu

Senior Member
Apr 2, 2006
1,283
101
66
Works well with BA running Xplode's WM6.5 21169.

Thanks for the tiny app.
 

arman68

Senior Member
Sep 22, 2006
286
230
Tried it on Kaiser, works well.

However, like the original, the bar does not extend all the way when screen is rotated to landscape mode.
 

anaadoul

Senior Member
Dec 8, 2008
397
0
Riyadh
Tested on Sonyericsson Xperia X1, working perfectly, but when switching to landscape mode the bar is not resizing


great application ;) keep up the good work