Simple example of operation of acelerometer in android