Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
allelimo
Old
(Last edited by allelimo; 19th May 2009 at 01:18 PM.) Reason: added faq nr. 4
#1  
Senior Member - OP
Thanks Meter 1
Posts: 170
Join Date: May 2005
Default [19 May 2009]iBattery v. 0.51

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.


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.
Attached Thumbnails
Click image for larger version

Name:	iBattery_screenshot.PNG
Views:	23692
Size:	8.9 KB
ID:	155568  
Attached Files
File Type: zip skin_examples.zip - [Click for QR Code] (430 Bytes, 1336 views)
File Type: cab iBattery051.CAB - [Click for QR Code] (11.3 KB, 1560 views)
 
jhw549
Old
#2  
jhw549's Avatar
Senior Member
Thanks Meter 1
Posts: 207
Join Date: Jul 2008
Location: Lincoln Park, NJ
Any chance we can see screenshots of this?
"Don't let today's disappointments put a shadow on tomorrows possibilities"

Device History:
Epic 4G Touch/Samsung Galaxy S II w/ ICS 4.0.4 Cyanogenmod 9 (20120628alpha6)
HTC Touch Pro2/Rhodium w/ EnergyRom Leo w/ WM6.5 build 21908)
HTC Touch Pro/Raphael
HTC Mogul/Titan
 
allelimo
Old
#3  
Senior Member - OP
Thanks Meter 1
Posts: 170
Join Date: May 2005
Quote:
Originally Posted by jhw549 View Post
Any chance we can see screenshots of this?
Screenshot added
 
12gage
Old
#4  
12gage's Avatar
Senior Member
Thanks Meter 55
Posts: 829
Join Date: Sep 2007
will it appear with Ifonz?
 
abumhmmd1
Old
#5  
abumhmmd1's Avatar
Senior Member
Thanks Meter 191
Posts: 2,034
Join Date: Nov 2006
Location: RIYADH

 
DONATE TO ME
Thumbs up wow wow

THANKs .
 
allelimo
Old
#6  
Senior Member - OP
Thanks Meter 1
Posts: 170
Join Date: May 2005
Quote:
Originally Posted by 12gage View Post
will it appear with Ifonz?
I've just added a reply at FAQ nr. 4
 
ericksan
Old
#7  
Member
Thanks Meter 2
Posts: 94
Join Date: Feb 2009
Works well on touch diamond wm6.5

Thank you for a nice app.
 
allelimo
Old
#8  
Senior Member - OP
Thanks Meter 1
Posts: 170
Join Date: May 2005
Quote:
Originally Posted by ericksan View Post
Works well on touch diamond wm6.5

Thank you for a nice app.
Thanks! Information added to faq
iApps Dev Team open source applications:
iAgenda
iBattery
iLaunch
Start Menu Button Hook
Open Source Project
 
madan26
Old
#9  
Senior Member
Thanks Meter 0
Posts: 127
Join Date: Jul 2008
Location: Ludhiana
Works well with my HTC Wizard with WM6.1 Pro. But I have a single line only.......
HTC P3300
Wm 6.5.5 (sys / xip25368) ashwaa
IPL : 3.15.0001
SPL 1.11 cmon
Radio: 3.34.90
 
mohen
Old
#10  
Senior Member
Thanks Meter 0
Posts: 175
Join Date: May 2007
thank you ! it's works great and i loving it .... keep develop it

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more

More Tips to Help Promote Your Android App

With over 700,000 apps in the Google Play store and more than 48 billion app installs, it’s … more

Sony Continues AOSP Initiative on the Tablet Z

Sometimes, you can harp on a subject so much that you end upbeating a dead horse. In our eyes, … more