The Tiltme example is a S60 application that demonstrates the usage of Accelerometer sensor to find the orientation along x, y and z axes.
The example makes use of StartSensor() method to start the Accelerometer sensor. Once the sensor has started acceleration values in all directions is drawn. The StopSensor() method is used to remove the Accelerometer sensor.
Click on the following link to download the example: Tiltme.zip
Click: browse to view the example code.
MRRSensorDataListener, CRRSensorApi.
Menu options are available to Start and Stop the sensor.