Add compatibility to Android 2.1