Sample Accelerometer Calibration using Phonegap for android.