Code is now compatible with API level 8 (android 2.2)