chapter  8
Using PhoneGap API
Pages 42

Using Accelerometer API An accelerometer is a sensor that provides information about the current position of the device, detecting its motion, tilt, and acceleration. This sensor is available on most modern smartphones. Using the accelerometer, we can develop applications that respond to the position or motion of the device. PhoneGap provides the Accelerometer API that enables us to access the accelerometer sensor of the device and use its information in Web applications.