added support for Android API Level 9 and higher