If you are still interested in the app, try searching for Android accelerometer tutorial. There are a couple out there that should show you how to access that part of the android device, and once you know the x,y,z accelerations due to gravity it should be pretty easy to calculate the phone's...