Reads Android phone accelerometer to measure the acceleration due to gravity, g