Tuesday, May 31, 2011

Three Android room-for-improvements

I believe the biggest gaps in the Android development experience are:

1. Poor support for unit tests --  There should be an Emulator free mechanism that starts up instantly (or worst case, in the same startup timeframe as a Spring app context.)

2. No native dependency injection -- Roboguice is maturing but to miss this feature is a little shocking.

3. The use of XML for view layouts --  It seems like Java classes with static methods or constants that return instances of the metadata would have been easy to implement and would have eliminated the need for R.java.  Or, a DSL would have been more compact and flexible (in Groovy, perhaps.)