Hi Binyamin,

In the gecko directory, look into hal/gonk/GonkSensor.cpp to see how we
poll sensors on Android. The DOM implementation is located in
dom/system/nsDeviceSensors.cpp, and the WebAPI is in dom/webapi.

If you're sensor is already supported by Android, you probably just need
to extend the API, otherwise you'll also have to write an new poll loop
for the sensor.

Best regards
Thomas

On 30.01.2014 01:36, Binyamin wrote:
> בע"ה
> 
> 
> 
> For example how to recreate GPS with geolocation API, how to apply 
> thermometer sensor or whatever with custom Web API support?
> 
> 
> 
> Binyamin
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
> 

_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to