Sunday, May 29, 2011

When android project return funny results or findviewbyid return null for no-sense

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: