With respect to the unreliable delay between events there are 2
reasons for this:

1) you don't receive an event when the value doesn't change.
2) there is a known bug in SensorManager where the thread pulling the
events out of the h/w queue is running at the same priority than the
UI thread (DISPLAY_PRIORITY), and therefore competes with it. This
will be fixed in a future version of android. Unfortunately, there are
no easy workaround.

Mathias


On Dec 8, 12:13 am, Heiko <[email protected]> wrote:
> With SENSOR_DELAY_GAME I get very unstable sample rates. Mostly it
> averages around 9 samples/second, but I also got 20, 30, 60 and 80.
> Seems like the SensorEventListener is very unreliable. The iPod 2G and
> iPhone 3GS have approximately the same hardware as the Droid (even the
> same accelerometer), but the sample rates average around 85 on these
> devices (reliable).
>
> Any word on the reliability of the SensorEventListener? I am kind of
> stuck here at the moment...
>
> Cheers
> Heiko

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to