clear directory
new app
create and start service
add accelerometer simulator
magnitude of acceleration minus gravity