Make library working with Android 2.2+
Merge pull request #13 from Tolriq/master

Make library working with Android 2.2+