3. Using sensors
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;
Sensor sensor is the sensor you wish to subscribe to;
...
You do not have access to this resource.
Exclusive to subscribers. 97% yet to be discovered!
Already subscribed?
Log in!
Ongoing reading
Using sensors