Go Back   xda-developers > Windows Mobile Development and Hacking > Windows Mobile Apps and Games


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th February 2009, 03:39 PM
allelimo allelimo is offline
Senior Member
 
Join Date: May 2005
Posts: 175
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 Images
File Type: png iBattery_screenshot.PNG (8.9 KB, 18506 views)
Attached Files
File Type: zip skin_examples.zip (430 Bytes, 973 views)
File Type: cab iBattery051.CAB (11.3 KB, 945 views)

Last edited by allelimo; 19th May 2009 at 02:18 PM.. Reason: added faq nr. 4
Reply With Quote
Sponsored Links

  #2  
Old 9th February 2009, 04:58 PM
jhw549's Avatar
jhw549 jhw549 is offline
Senior Member
 
Join Date: Jul 2008
Location: Clifton, NJ
Posts: 195
Default

Any chance we can see screenshots of this?
__________________
"Don't let today's disappointments put a shadow on tomorrows possibilities"

Plan Details:
Sprint: 3000 Min, Unltd N/W @ 7PM, Unltd Text Msgs, Unltd Pic Msgs, Unltd Data, Insurance
Cost:
$20/mo - Plan
$7/mo - Ins

Gotta Love RadioShack Employee Plans


Device History:
HTC Touch Pro2/Rhodium w/ EnergyRom build 21877 w/ WM6.5 (Current)
HTC Touch Pro/Raphael
HTC Mogul/Titan
Samsung SPH-A940
Sanyo 8300
LG VX6100
LG VX6000
Motorola Startac
Reply With Quote

  #3  
Old 9th February 2009, 05:20 PM
allelimo allelimo is offline
Senior Member
 
Join Date: May 2005
Posts: 175
Default

Quote:
Originally Posted by jhw549 View Post
Any chance we can see screenshots of this?
Screenshot added
Reply With Quote

  #4  
Old 9th February 2009, 06:06 PM
12gage's Avatar
12gage 12gage is online now
Senior Member
 
Join Date: Sep 2007
Posts: 319
Default

will it appear with Ifonz?
Reply With Quote

  #5  
Old 9th February 2009, 06:14 PM
abumhmmd1's Avatar
abumhmmd1 abumhmmd1 is offline
Senior Member
 
Join Date: Nov 2006
Location: RIYADH
Posts: 1,023
Thumbs up wow wow

THANKs .
Reply With Quote

  #6  
Old 9th February 2009, 06:52 PM
allelimo allelimo is offline
Senior Member
 
Join Date: May 2005
Posts: 175
Default

Quote:
Originally Posted by 12gage View Post
will it appear with Ifonz?
I've just added a reply at FAQ nr. 4
Reply With Quote

  #7  
Old 8th March 2009, 05:49 PM
ericksan ericksan is offline
Member
 
Join Date: Feb 2009
Posts: 36
Default

Works well on touch diamond wm6.5

Thank you for a nice app.
__________________
----------------------------
Hard SPL 1.37
Radio 1.12.25.19
Windows Mobile 6.5 BETA 1 [ND4SPD]
Reply With Quote

  #8  
Old 9th March 2009, 08:34 AM
allelimo allelimo is offline
Senior Member
 
Join Date: May 2005
Posts: 175
Default

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
Reply With Quote

  #9  
Old 9th March 2009, 08:43 AM
madan26's Avatar
madan26 madan26 is offline
Senior Member
 
Join Date: Jul 2008
Location: LDH
Posts: 116
Default

Works well with my HTC Wizard with WM6.1 Pro. But I have a single line only.......
__________________
O2 XDA Mini S G3-Unlocked
CR96 Touch HD™ v6.5.0.1.8 beta
IPL/SPL 3.08 Radio: 3.02.11
Reply With Quote

  #10  
Old 9th March 2009, 09:09 AM
mohen mohen is offline
Senior Member
 
Join Date: May 2007
Posts: 175
Default

thank you ! it's works great and i loving it .... keep develop it
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.