Compatibility for Android 2.2