You get them on the main thread, in my experience, unless you use the
SensorManager#registerListener method that takes a Handler argument
with a Handler created for a different thread.

On Jun 24, 5:50 pm, kamiseq <[email protected]> wrote:
> hi,
> I have two questions about sensor listeners
>
> 1. from which thread are sensor values updated and should this be
> synchronized? can sensor's listener callback be a good place to call
> custom's view onDraw method? as this should be done from different
> thread. I cant find anything about it. In another words my problem is
> that I want to listen to sensors change and draw something on view
> surface but I dont know which thread (the main thread of the
> application??) is updating sensor's state
>
> 2. If I register sensor listener with SENSOR_DELAY_FASTEST my
> application is not responsive at all! Raw application with TextView
> only is not reacting to go back or home button!
> How should I deal with this or am I doing something wrong?
>
> thanks for help

-- 
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