On Aug 21, 7:32 pm, Donn Felker <donnfel...@gmail.com> wrote:
> Cant you set a timer or time the events between readings? Example, when the
> sensor is fired (which goes very fast as you know) throw a simple
> if(mTimeElapsed > 2000) { // do stuff }
>
> That would work, wouldnt it?
>
>
>
> On Fri, Aug 21, 2009 at 9:32 AM, DaminouU <dam.le...@gmail.com> wrote:
>
> > Hi,
>
> > I am currently using sensors and I would like to know if I can slow
> > down the sampling rate.
> > Indeed, I register my listener with the constant
> > "SensorManager.SENSOR_DELAY_UI"
> > (is it the slowest one of the four constants mentionned in the
> > documentation?)
> > but the rate is still quite high. I would like to be able to define
> > the time before giving the new value (For example, I would like to
> > wait two seconds before update).
>
> > Does someone have any idea to do that?
>
> > Thanks,
>
> > D.
>
> --
> Donnhttp://blog.donnfelker.com/

All right,
I will try your solution.

Thanks to both of you
--~--~---------~--~----~------------~-------~--~----~
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