Pierre Hébert I tried your Compass script.
Pierre Hébert I tried your Compass script. It throws an android is not defined error. I think you should check the full qualified class names syntax, because I’ts not working for me at all.
]]>
< ![CDATA[
Weird, it works for me. How does it work if you replace direct android.hardware.* references with their simple name and a call to LL.bindClass first at startup ?
LL.bindClass(“android.hardware.Sensor”);
LL.bindClass(“android.hardware.SensorEventListener”);
LL.bindClass(“android.hardware.SensorManager”);
]]>
< ![CDATA[
Works
]]>