How to make the Rolling ball respond to the Tilt?

I need to know this aswell. I want the bal to be fully controlled by the tilt on my phone