I'm writing at app that needs to update based on data coming from the orientation sensor. I was able to use the SensorEventListener's onSensorChanged method to continually get the data. However, I only want to poll for the data once every second.
What is the best way to get the sensor data at a specific time interval?
I'm coding for the 2.0 platform, so it'd be nice if any code samples used the current set of APIs. Thanks!
What is the best way to get the sensor data at a specific time interval?
I'm coding for the 2.0 platform, so it'd be nice if any code samples used the current set of APIs. Thanks!