воскресенье, 31 августа 2008 г.

String & CharSequence

OK, I have a problem. J2ME's String class does not implement CharSequence interface. No surprise here - there is simply no such interface in J2ME. But all J2SE code assumes that String *is a* CharSequence. And this is a problem.

пятница, 29 августа 2008 г.

aapt list & dump

I've just discovered that aapt is capable of listing and dumping things.
"aapt list -a android.jar" provides dump of resources file inside android.jar.
"dump" command has interesting xmltree option, though I didn't manage to get it work. All attempts ended with "ERROR: dump failed because resource 003D3E27 found".

Anyway, now I know that 0x20000 signifies PUBLIC resource.
I don't know what thouse s=0x0008 and r=0x00 mean.
Also I don't know that signifies bag values - value 0x10 or flag 0x10000.

среда, 27 августа 2008 г.

Resources.arsc: first info

Well, I'm moving towards complete decompiler for resource.arsc.
For now I'm able to restore folders structure...

And now I have a spoiler: it seems that Android will come in these languages first: en,de,nl,es,cs. Yes, Czech. I wonder when there will be ru :)

вторник, 26 августа 2008 г.

Resources.arsc

I've reversed resources.arsc structure, and now I'm writing a "decompiler" for it.

One interesting thing: upon discovering what those 6 magic ints mean I found a bug - pixel density specifier is ignored.

понедельник, 25 августа 2008 г.

Hooray, blog!

Android4ME project got blog!

Current news: I've just finished StringBlock class, structure used in binary xml files and resources.arsc file.

What is next: creating reader for resources.arsc.

BTW, did you know you can create styled strings in Android?
E.g.: <string name="cool">Hello <b>World</b>!</string>

Also, what is R.plurals?