Add compatibility for android 2.3erbread