how to use accelerometer in android cocos2Dx

Could someone tell me or direct me to an example of grabbing data from the accelerometer in android cocos2Dx?

There is a test case named AccelerometerTest in tests.

ah I seeā€¦ thanks