Compiles with Android 2.2 (API 8).
Some attributes removed for compatibility (they make warnings on newer
versions, though).