Android app to read co-ordinates of Accelerometer periodically