New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Bytecode
Old
(Last edited by Bytecode; 4th April 2011 at 10:03 PM.)
#1  
Bytecode's Avatar
Recognized Developer - OP
Thanks Meter 4369
Posts: 2,496
Join Date: Dec 2010
Location: /dev/null
Default I got some XML troubles

I think i'm gonna need an exorcist. I'm trying to fix battery xml like this:

1.decompile w/ apkmanager
2.Navigate to /res/drawable and open with wordpad stat_sys_battery
3.Customize the file
4.Recompile
5.Flash.

But after flashed,i can't see battery icons in statusbar.


This is my untouched XML. I can see battery icons in statusbar.

Code:

This is my modded stat_sys_battery. With this one i can't see battery icons in statusbar.
Code:

What can it be?!?!?
Bytecode - fourteen years-old experienced developer.

My devices:
  • LG-P500 (qcom msm7x27t, mdpi, codename: thunderg)
  • Xperia T (msm8x60a, xhdpi, codename: mint)



Quote:
I respect GPL and other people - you can find all my sources at github.com/BytecodeX
Quote:
I am a androidarmv6 contributor - helping old legacy devices get a better Android experience. https://github.com/androidarmv6
 
Bytecode
Old
#2  
Bytecode's Avatar
Recognized Developer - OP
Thanks Meter 4369
Posts: 2,496
Join Date: Dec 2010
Location: /dev/null
Up.

Sent from my LG Optimus One P500 using Tapatalk
Bytecode - fourteen years-old experienced developer.

My devices:
  • LG-P500 (qcom msm7x27t, mdpi, codename: thunderg)
  • Xperia T (msm8x60a, xhdpi, codename: mint)



Quote:
I respect GPL and other people - you can find all my sources at github.com/BytecodeX
Quote:
I am a androidarmv6 contributor - helping old legacy devices get a better Android experience. https://github.com/androidarmv6
 
ungaze
Old
#3  
ungaze's Avatar
Senior Member
Thanks Meter 157
Posts: 316
Join Date: Jul 2010
Location: manila
Did you delete the resources thing when recompiling? the only problem that I can see here is that the new battery pngs didn't get to be registered in the resources.xml(I'm not exactly sure with the name so) and so when the sys_stat_battery.xml calls for the pngs(it ask resources.xml if it was included and is part of the apk), resources.xml will reject the request and battery icon won't show up. Wasted almost a month of my life with the same problem before. Hope this helps.

There was someone(moderator) on the android theming thread who knows a lot about these stuff. Try asking there and post the results here.
 
Bytecode
Old
#4  
Bytecode's Avatar
Recognized Developer - OP
Thanks Meter 4369
Posts: 2,496
Join Date: Dec 2010
Location: /dev/null
So i only need to delete resources.arsc before compiling?

Sent from my LG Optimus One P500 using Tapatalk
Bytecode - fourteen years-old experienced developer.

My devices:
  • LG-P500 (qcom msm7x27t, mdpi, codename: thunderg)
  • Xperia T (msm8x60a, xhdpi, codename: mint)



Quote:
I respect GPL and other people - you can find all my sources at github.com/BytecodeX
Quote:
I am a androidarmv6 contributor - helping old legacy devices get a better Android experience. https://github.com/androidarmv6
 
ungaze
Old
#5  
ungaze's Avatar
Senior Member
Thanks Meter 157
Posts: 316
Join Date: Jul 2010
Location: manila
I'm not doing any themes lately but if I remember it correctly, there's an instruction to delete resources.arsc on the temporary folder(can't remember the exact name) made by apkmanager whenever you modify an XML.