Have you watched SensorManager ?
Here's a very good tutorial: http://www.ibm.com/developerworks/opensource/library/os-android-sensor/
Update after editing the question:
SensorEventListener is an interface, not a class, so you are forced to implement your code in two callbacks:
abstract void onAccuracyChanged(Sensor sensor, int accuracy)
abstract void onSensorChanged(SensorEvent event)
You will be more interested in the second.
Please take a look at the tutorial that I posted above. Halfway there is an example of an accelerometer:
Sensor Example
(. Download ). , TextView. 1 .
, , , .