tags:

views:

109

answers:

2

Using DDMS I took a downloaded APK off my phone and unzipped it.

The PNGs look great, but when I try to read the XMLs their encoding is such that none of my text editors can read it (Word, Notepad, Visual Studio etc)

Is there something done to the XMLs in a APK that prevents us from reading them?

A: 

The XML files are stored in a compiled format. From android docs:

When you compile your application, each XML layout file is compiled into a View resource.

I'm not aware of a decompiler, its probably possible though.

Mayra
+1  A: 

You can decode them using a Java program - AXMLPrinter2.jar.

http://forum.xda-developers.com/showthread.php?t=514412

http://code.google.com/p/android4me/downloads/detail?name=AXMLPrinter2.jar&can=2&q=

I'm sure there are better details out there, but that should set you on the right path.

ydant