Making compatible to API version 8 (Android 2.2)