Fix for API level 8 compatibility
Merge pull request #99 from dimagi/api_8_fix

Fix for API level 8 compatibility