How to use Android accelerometer