fixed example & tested on android 4.x