Any way to make battery icon image update every 10% rather than every 20%?
This is a discussion on Any way to make battery icon image update every 10% rather than every 20%? within the cvpcs forums, part of the Droid Forums Dev Archives category; I've been playing around with theming and decided to change my battery icon. I switched to a circular battery icon and was hoping to know ...
-
Any way to make battery icon image update every 10% rather than every 20%?
I've been playing around with theming and decided to change my battery icon. I switched to a circular battery icon and was hoping to know battery percentages left just based on appearance (without having the percentage displayed in the battery). The problem with this is that battery images are only updated every 20%. Obviously the system can detect 10% changes since when you choose to have battery percentage displayed, it update every 10%. Is there any relatively easy way to make the image update every 10% decrease in battery, or is that something that would need to be done by cvpcs were he to deem it a useful feature?
Although I doubt it is, just in case this setting can be theme dependent, I'm running black bar mod.
-
-
I've not noticed my battery updating in anything greater that 10% increments, it updates in 5% increments when it's less than 20% battery life. I'm wondering if it's possible that your not looking at your phone often enough to notice the decrease.
-

Originally Posted by
cobra2
I've not noticed my battery updating in anything greater that 10% increments, it updates in 5% increments when it's less than 20% battery life. I'm wondering if it's possible that your not looking at your phone often enough to notice the decrease.
The number that appears "in" the icon will update every 10%, so it may appear that it's updating that frequently, but the image for the battery icon will only update every 20%. The number that displays is just drawn over the image. I'm hoping to get the image itself to update every 10%.
-
Ahh, well that would just be messing with the icon images itself. I'm not a theme guy myself. [LOL, I'm a nobody, I don't do anything.] I'd assume that the only thing that would be needed would be to add in more images to the battery icon set.
-
If I understand correctly, basically what you want is to have a total of 10-12 icons for the battery state? Like 5%, 10%, 20%, 30%, 40%, 50%..........90%, 100% icons?
Creating the icons would be very simple.
But I think cvpcs would have to chime in on this one to see if the phone itself (in the code) actually would/could call for an image when it's reporting the odd percentages.
Like you mentioned....theres an icon for 5,10,20,40,60,80,100%'s and they show up when the system reports those levels of battery.
But if you create an icon for 30,50,70,90%'s...will those images show up when the system reports those levels.
Hmmm..good question!
My name "IS" carl-- z28 is just what I drive.
But I respond to anything....call me Tom, Richard or Harry.
-

Originally Posted by
carlz28
If I understand correctly, basically what you want is to have a total of 10-12 icons for the battery state? Like 5%, 10%, 20%, 30%, 40%, 50%..........90%, 100% icons?
Creating the icons would be very simple.
But I think cvpcs would have to chime in on this one to see if the phone itself (in the code) actually would/could call for an image when it's reporting the odd percentages.
Like you mentioned....theres an icon for 5,10,20,40,60,80,100%'s and they show up when the system reports those levels of battery.
But if you create an icon for 30,50,70,90%'s...will those images show up when the system reports those levels.
Hmmm..good question!
I think this would be a nice feature! Vanilla, have you put in a feature request to bugzilla?
I realized my signature was dumb, so I removed it.
-

Originally Posted by
carlz28
If I understand correctly, basically what you want is to have a total of 10-12 icons for the battery state? Like 5%, 10%, 20%, 30%, 40%, 50%..........90%, 100% icons?
Creating the icons would be very simple.
But I think cvpcs would have to chime in on this one to see if the phone itself (in the code) actually would/could call for an image when it's reporting the odd percentages.
Like you mentioned....theres an icon for 5,10,20,40,60,80,100%'s and they show up when the system reports those levels of battery.
But if you create an icon for 30,50,70,90%'s...will those images show up when the system reports those levels.
Hmmm..good question!
U can't just add in the images it's hardcoded. But what are you guys talking about? On Sapphire 1.0 I get 90,70,50,30, as well as 80,60,40,20,10,5.
-

Originally Posted by
Vanilla Tarantino
I've been playing around with theming and decided to change my battery icon. I switched to a circular battery icon and was hoping to know battery percentages left just based on appearance (without having the percentage displayed in the battery). The problem with this is that battery images are only updated every 20%. Obviously the system can detect 10% changes since when you choose to have battery percentage displayed, it update every 10%. Is there any relatively easy way to make the image update every 10% decrease in battery, or is that something that would need to be done by cvpcs were he to deem it a useful feature?
Although I doubt it is, just in case this setting can be theme dependent, I'm running black bar mod.
you have to add .png's to the correct folder and edit a .xml to reflect those file additions so that the phone will actually use them.
i am at work and don't have time atm to give better details than this sorry
"i want to punch motorola in the face, then i want to shove my droid x down his throat and when he starts choking say "oh sorry, apparently your throat isn't signed properly for loading air into your lungs" - cvpcs
-

Originally Posted by
tallica

Originally Posted by
carlz28
If I understand correctly, basically what you want is to have a total of 10-12 icons for the battery state? Like 5%, 10%, 20%, 30%, 40%, 50%..........90%, 100% icons?
Creating the icons would be very simple.
But I think cvpcs would have to chime in on this one to see if the phone itself (in the code) actually would/could call for an image when it's reporting the odd percentages.
Like you mentioned....theres an icon for 5,10,20,40,60,80,100%'s and they show up when the system reports those levels of battery.
But if you create an icon for 30,50,70,90%'s...will those images show up when the system reports those levels.
Hmmm..good question!
U
can't just add in the images it's hardcoded. But what are you guys talking about? On Sapphire 1.0 I get 90,70,50,30, as well as 80,60,40,20,10,5.
You're right and wrong. You can add images for the odd percentages. But like you and sniffle said, an xml edit would need to be made to reflect those images as options. As far as you having 90,70,50,30....there are currently no icons for those %'s in framework-res/res/drawable-hdpi. (at least to my knowledge) What you are seeing is the # overlay on top of the battery icons at the respective states. So when you're at 90%..its probably showing the 80% icon

Originally Posted by
sniffle

Originally Posted by
Vanilla Tarantino
I've been playing around with theming and decided to change my battery icon. I switched to a circular battery icon and was hoping to know battery percentages left just based on appearance (without having the percentage displayed in the battery). The problem with this is that battery images are only updated every 20%. Obviously the system can detect 10% changes since when you choose to have battery percentage displayed, it update every 10%. Is there any relatively easy way to make the image update every 10% decrease in battery, or is that something that would need to be done by cvpcs were he to deem it a useful feature?
Although I doubt it is, just in case this setting can be theme dependent, I'm running black bar mod.
you have to add .png's to the correct folder and edit a .xml to reflect those file additions so that the phone will actually use them.
i am at work and don't have time atm to give better details than this sorry
They would be put in framework-res/res/drawable-hdpi, like the others, right?
My name "IS" carl-- z28 is just what I drive.
But I respond to anything....call me Tom, Richard or Harry.
-

Originally Posted by
sniffle

Originally Posted by
Vanilla Tarantino
I've been playing around with theming and decided to change my battery icon. I switched to a circular battery icon and was hoping to know battery percentages left just based on appearance (without having the percentage displayed in the battery). The problem with this is that battery images are only updated every 20%. Obviously the system can detect 10% changes since when you choose to have battery percentage displayed, it update every 10%. Is there any relatively easy way to make the image update every 10% decrease in battery, or is that something that would need to be done by cvpcs were he to deem it a useful feature?
Although I doubt it is, just in case this setting can be theme dependent, I'm running black bar mod.
you have to add .png's to the correct folder and edit a .xml to reflect those file additions so that the phone will actually use them.
i am at work and don't have time atm to give better details than this sorry
Adding the .png files was actually the first thing I tried...so they're currently sitting where they need to (which is how I discovered that it only updates the icon every 20%). Do you know what .xml file I would need to modify? I have no clue what I'm doing, but I'm always up for learning/figuring it out.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By oMenaceTigero in forum Droid Themes
Replies: 8
Last Post: 12-06-2010, 10:42 PM
-
By malpert in forum New Member Introductions & Site Assistance
Replies: 7
Last Post: 07-18-2010, 04:13 PM
-
By peterjariel in forum Droid Applications
Replies: 13
Last Post: 05-12-2010, 10:12 PM
-
By liquidzoo in forum Droid Hacks
Replies: 2
Last Post: 02-08-2010, 01:37 PM
-
By GOON in forum Droid Themes
Replies: 1
Last Post: 01-26-2010, 02:33 AM
Search tags for this page
@drawable/stat sys battery 10 android:maxlevel= ??? 10
,
a10 frameworl-res.apk
,
android battery icon inaccurate
,
android battery icon percentage png
,
android battery icon png
,
android battery icon theme xml file
,
android battery xml
,
android xml png hex battery icon
,
battery icon droid update
,
battery of droid xml
,
brut.directory.pathnotexist: apktool.yml
,
edit stat sys battery.xml
,
hdpi+battery icon
,
link2sd jar
,
public.xml file android
,
stat battery png
,
stat sys battery 10
,
stat sys battery charge.xml
,
stat sys battery.xml
,
theme guide add 1% battery mod to decompile framework.apk sa
Click on a term to search our site for related topics.
Tags for this Thread