A step counter on Android plalform