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
Hi
On 30.01.2014 10:37, Binyamin wrote:
Thanks a lot, Thomas, for your feedback!
Did you meant:
http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp
http://dxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp
Thanks again!
Why I can't find anything related to NFC and GPS Geolocation in:
https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h
http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp
Are you sure, all supported sensors are
Le 30/01/2014 11:59, laukst...@gmail.com a écrit :
Thanks again!
Why I can't find anything related to NFC and GPS Geolocation in:
https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/sensors.h
I just find more sensor details in:
https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware
https://github.com/mozilla-b2g/android-hardware-libhardware/tree/master/include/hardware
___
dev-b2g mailing list
So if I want to implement RFID sensor (not NFC), do I need to apply it to
http://dxr.mozilla.org/mozilla-central/source/hal/gonk/GonkSensor.cpp
http://dxr.mozilla.org/mozilla-central/source/dom/system/nsDeviceSensors.cpp
http://dxr.mozilla.org/mozilla-central/source/dom/webidl/
or to
Hi
NFC uses completely different code than the Android sensors.
I don't know much about the details of RFID, but it seems significantly
different from the Android sensors, so I wouldn't add it to the Android
sensors. You could use these files as a template for your code, though.
Also, if your
בעה
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
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
בעה
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
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
Hi Binyamin,
I can't say that I've tried to use it; The webapi itself has documentation at
dev mo:
https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation
Other web API can be found here :
https://developer.mozilla.org/en-US/docs/WebAPI
I don't think we have a thermometer sensor in
Naoki, I'm not asking about already existing Web APIs.
My question is: How I can apply by myself, for example, an thermometer sensor
for Firefox OS and make Web API for it?
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
בעה
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
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
12 matches
Mail list logo