DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 10 1 2 3 ... LastLast
Results 1 to 10 of 98

Thread: Any way to make battery icon image update every 10% rather than every 20%?

  1. Senior Droid
    Vanilla Tarantino's Avatar
    Member #
    3682
    Join Date
    Nov 2009
    Posts
    135
    Phone
    Droid
    #1

    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.
  2. Junior Droid
    cobra2's Avatar
    Member #
    98074
    Join Date
    Aug 2010
    Posts
    22
    Phone
    Moto Droid
    #2
    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.
  3. Senior Droid
    Vanilla Tarantino's Avatar
    Member #
    3682
    Join Date
    Nov 2009
    Posts
    135
    Phone
    Droid
    #3
    Quote Originally Posted by cobra2 View Post
    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%.
  4. Junior Droid
    cobra2's Avatar
    Member #
    98074
    Join Date
    Aug 2010
    Posts
    22
    Phone
    Moto Droid
    #4
    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.
  5. Theme Developer
    carlz28's Avatar
    Member #
    42280
    Join Date
    Feb 2010
    Posts
    820
    Liked
    1 times
    Phone
    DROID X
    DroidForums.net Theme Developer
    Premium Member
    #5
    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.
  6. Master Droid
    serveitup911's Avatar
    Member #
    17173
    Join Date
    Dec 2009
    Posts
    292
    Phone
    Droid w/ some source built ROM
    #6
    Quote Originally Posted by carlz28 View Post
    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.
  7. Rescue Squad
    Tallica's Avatar
    Member #
    48266
    Join Date
    Mar 2010
    Location
    Middleboro, MA
    Posts
    3,259
    Liked
    6 times
    Twitter
    Tallica21
    Phone
    GSIII-Rooted
    Premium Member
    #7
    Quote Originally Posted by carlz28 View Post
    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.
  8. Beta Team
    sniffle's Avatar
    Member #
    55726
    Join Date
    Apr 2010
    Location
    Birmingham AL
    Posts
    291
    Phone
    Motorola Droid, HTC Incredible
    DroidForums.net Developer
    Premium Member
    #8
    Quote Originally Posted by Vanilla Tarantino View Post
    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
  9. Theme Developer
    carlz28's Avatar
    Member #
    42280
    Join Date
    Feb 2010
    Posts
    820
    Liked
    1 times
    Phone
    DROID X
    DroidForums.net Theme Developer
    Premium Member
    #9
    Quote Originally Posted by tallica View Post
    Quote Originally Posted by carlz28 View Post
    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

    Quote Originally Posted by sniffle View Post
    Quote Originally Posted by Vanilla Tarantino View Post
    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.
  10. Senior Droid
    Vanilla Tarantino's Avatar
    Member #
    3682
    Join Date
    Nov 2009
    Posts
    135
    Phone
    Droid
    #10
    Quote Originally Posted by sniffle View Post
    Quote Originally Posted by Vanilla Tarantino View Post
    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.
Page 1 of 10 1 2 3 ... LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. [MM Theme] Spiderman Battery Icon / The Flash Charging Icon
    By oMenaceTigero in forum Android Themes
    Replies: 8
    Last Post: 12-06-2010, 09:42 PM
  2. how can i hit one icon on main screen and make a call
    By malpert in forum New Member Introductions & Site Assistance
    Replies: 7
    Last Post: 07-18-2010, 03:13 PM
  3. how to make an icon with bettercut?
    By peterjariel in forum Android Applications
    Replies: 13
    Last Post: 05-12-2010, 09:12 PM
  4. icon/image question
    By liquidzoo in forum Android Hacks and Help
    Replies: 2
    Last Post: 02-08-2010, 12:37 PM
  5. how to make custom icon?? help please
    By GOON in forum Android Themes
    Replies: 1
    Last Post: 01-26-2010, 01:33 AM

Search tags for this page

android battery icon percentage png
,

android battery xml

,
android battery xml location
,
android xml battery
,
android xml png hex battery icon
,
battery xml android
,
icon
,
make the battery icon update every 1%
,
stat sys battery charge.xml
,

stat sys battery.xml

Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+