App runs on device and contains code to detect gravity