This application uses accelerometer to get acceleration of device