Monday, June 21, 2010

[android-developers] Forcing Sensor Readout?

Is there a way to force a sensor readout, without waiting for the
SensorEnventListener to get triggered?
The problem i encountered playing around with Sensors, is the
lightsensor won't call the EventListener unless i cover up the Hole on
the smartphone where the Light sensor/Proximity sensor is. Turning the
smartphone so that it faces a window works too of course. The small
changes in ambient light level while just holding the Phone seem to be
to little to trigger a sensor event. So i need a way to call a
"give_me_the_data_right_now()" function...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment