Almost everything

After all, we are back with the accelerometer. If conditions in
onSensorChanged needs to be implemented yet.