Program to plot accelerometer readings android