views:

54

answers:

1

I have made a pedometer application... i wanted to know how to test this application on an emulator as i am not having an android device

+4  A: 

Use this add-on tool from OpenIntents to feed accelerometer data to the emulator.

Sensor Simulator

Nick
Awesome! :) :) :)
st0le
Thanks very much Nick..... I have tried openGl sensor but the problem is when i start this(opengl) application it works fine but as soon as i go back to my pedometer application it shows all the sensors as disabled :( :(
Jasra
That's a separate problem then - sounds like you have missed a step somewhere in your app. Have you called the `SensorManager.registerListener()` method to start listening to `SensorManager.SENSOR_ACCELEROMETER`?
Nick