Separate names with a comma.
Discussion in 'Android Custom & Themes' started by crdnilfan, Jan 2, 2010.
Can you make your changes as above and recompile the kernel?
No it runs from a command line. So copy theAXMLPrinter2.jar and whatever .xml file into the same directory, say c:\droid. Then Start|Run|cmd - then type:
java -jar AXMLPrinter2.jar filename.xml > file.txt
Where filename.xml is the name of the .xml file
And file.txt is whatever name you want to give the text file that will contain the xml contents.
No, it can't recompile. I THINK what you can do with this is once you find what you're looking for, say the color of some text, you can convert it to hex and then search for that hex value in a hex editor on the .xml file, change it, and save. Not positive on that though.
I've actually got this working recently by making the changes in source code then compiling the framework-res.apk.
have battery states at 5% increments, too lazy to make 100 png's for 1%.
How did you do that? I've been trying to do some stuff like that but never had sucess.
I believe this will be helpful. (1-100% .png's)
The cyanogen rom already has this displayed in 10% increments. I put in my custom battery images and the increments where still overlaying my new images. If you like cyanogen then that is one way to go.
I fail to understand why people discussing a hack are constantly told just run this rom over here.
Yes I know what cyanogen has, no i don't use him rom.
It's also done in java on his rom, which is more system intensive than an xml edit, but thanks for your input.
As for the 1-100 % states, i'm not a fan of red myself, but if you include the resources.arc file with that it should work in any compatible (version ese81 i assume) rom.
I wasn't really directing this at you. More to the op that was looking for 10% increments. I know I was able to edit the framework-res file with my own images and it will show the battery left percentages over top of them......they are not part of the actual image. Thought he might be able to look at the code and .xml files on that rom to help him out with getting what he wants on his.
here's a question for you, ok lets say I use root explorer and go into the apk that I want to edit, can I make a copy of the xml file save it into another folder. Make a copy of the apk and dump it on my computer. take the copy of the xml and then open lets say notepad++ and type the xml or copy paste it and then change it on my notepad++ when done put that back to the apk file. then sign it over again back to my phone. Is this possible?
I want to do this as well, but I do not think it is as easy as editing the xml file and putting it back. doing so ends up with no battery icons since it makes the xml file invalid.
I wish there was a simplier way to just edit that file, note the location and addition of the new images - which I can easily put into the right folder in res - and recompile it and place it. that seems not the case.