iOS app that tracks device movement and determines what the user is doing