Mark Assad : Project - Android Hacking
Decoding the raw XML files from android

The Android SDK comes with a number of system layout files that are stored in a special binary XML coding. I wanted a way to see how those files were put together while developing my own application. I haven't had the time to try and work out what the binary XML format is just yet, but what I have done is write a small Android app that walks the XML files, and writes a text version to the file system. I've used the XML parser that is built into the Android library.

I've included the code for this below, and also the output from running this file on the android.R.layout class. This was put together pretty quickly, any comments from people who have spent more time with Android/Java, I'd be very much happy to hear them.

I've now updated the android_r_layout.tgz file to be plain text and have removed the prefix url from the namespace. Should make it a little easier to work with. Still not valid XML, but enough to look at and learn from.

Download
A Map, List and a TabView

I wanted a way to have both a Map and a List together in a TabView on a single Android Activity. To do this I've created a copy of the ListActivity which is a subclass for the MapActivity. Seems to work, but I haven't really tested it. The code is included below if anyone is interested.

The taview code is based on code from Jeffery Sharkey's blog.

Download