Implementing android accelerometer sensor