Create a new SensorEventListener implementation that sums the
acceleration detected along each axis and negates the acceleration due to
gravity. It should update the current (and possibly maximum) acceleration
whenever a change in acceleration is detected: