Added backward compatibility for Android 2.2.x (fixes #18)