Most likely is because of the half-boiled eclipse auto-compile resource implementation, your XML files and the compiled resources are not sync. to solve it goto project->clean...
another tips: getDafaultSensor() should pass in Sensor.TYPE_SENSOR_xxxxx not SensorManager.SENSOR_xxxxx. the latter is for the deprecated registerListener(listener, sensor, delay)
No comments:
Post a Comment