Hi,
Try sns.GetNames() to list all your sensors.
Many Greetings
Timo
Understanding the arguments in the callback takes a bit more digging as I don't know of any DroidScript documentation.
I look in the following page, in the "Fields" section at the field called "Values".
http://developer.android.com/reference/android/hardware/SensorEvent.html#values
It's not written with JavaScript in mind but it's the only reference I've used so far.
Step Detector
Step Counter
Significant Motion Detector
Basic Gestures
PedometerE SensorManager: sensor or listener is nullfunction OnStart()
{
var pedometer = app.CreateSensor( 'Step Counter' );
pedometer.SetOnChange( pedometer_OnChange );
pedometer.Start();
}
function pedometer_OnChange()
{
console.log( 'pedometer_OnChange() called' );
}