3. Using sensors
3.1 Subscription
In order to use the sensor and be kept informed of its measurements, you need to add a listener object to it. This is done using the registerListener function:
public boolean registerListener(SensorEventListener listener, Sensor
sensor, int rate)
where :
SensorEventListener listener is the listener object (observer) that will be notified of a change in the measured value by calling its onSensorChanged method;...
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!
Using sensors
Article included in this offer
"Software technologies and System architectures"
(
227 articles
)
Updated and enriched with articles validated by our scientific committees
A set of exclusive tools to complement the resources
Bibliography
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed? Log in!