Android Accelerometer : onSensorChanged Runs Always
问题 I've written a method to send UDP messages over the network.It's working properly. After that, i tried to use the Accelerometer Sensor of my Galaxy S smartphone.I get the accelerometer values, show them in the screen. And when the values are changed(onSensorChanged method) , i send them using UDP to the application on my computer. The problem is that the program sends the sensor values always, not when they are changed. So, the onSensorChanged method is running always. I put my phone on the