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 <[email protected]> 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. > > > -- Donn http://blog.donnfelker.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

