this is a example for the use of accelerometer sensor in android.