Problem solved. In case others experience the same problems:

The constants for the sensors seem to be wrong. I used: getSensorList
(SensorManager.SENSOR_ACCELEROMETER).get(0);  which returned a handle
to the magnetic field sensor. Also the Sensor.TYPE_ACCELEROMETER
constant returned a wrong handle. I solved it by manually looking up
the list and choosing the accelerometer afterwards:

getSensorList(Sensor.TYPE_ALL).get(0);

Now getting sample rates from 120-170 samples/second.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to