This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
please do not refer to the googles documentation as a complete answer
That's where the answer is, though. The javadocs for SensorManager tell you how to get hold of a SensorManager object. Once you have that, you can use it to register your SensorListener with the OS.