add support for android api level 7 and up