Measures acceleration using android accelerometer and a background service