Apps Shake ? -accelerometer

How to do something when the user shakes the phone ?

I need to know how to get the input from the accelerometer..?
 
Top