Android - How to go about creating "shake controller"

I need to add a shake feature that will refresh my Anroid application.

All I find of documentation involves implementing the SensorListener, but Eclipse tells me it's deprecated and suggest SensorEventListener.

Anybody that has a nice guide to how I go about creating this "shake controller"?

Popular Posts