You can create a simple tool to measure gravitational force (g-force)
by summing the acceleration in all three directions.
• In the following example you’ll create a simple device to measure gforce
using the accelerometers to determine the current force being
exerted on the device.
• The acceleration force exerted on the device at rest is 9.8 m/s2
toward the center of the Earth.
• In example 6 you’ll negate the force of gravity by accounting for it
using the SensorManager.STANDARD_GRAVITY constant.
• If you plan to use this application on another planet, you can use an
alternative gravity constant, as appropriate.