Adding a background service to listen for accelerometer sensor