I feel this is the hardware issue, because of the speaker which is place in back side, on playing the sound because of the vibrations the accelerometer is giving these values.
Try to hold the phone with out putting any surface closed to the speaker holes, then u will not get these wired values. I tried its working :). On Tue, Jun 9, 2009 at 11:38 PM, TjerkW <[email protected]> wrote: > > I am developing a game. > In which the user controls movement using the accelerometer. > Sounds effects can also be enabled. > > However when laying the phone flat down and playing the game without > the accelerometer gives nice 0,0,0 values. > > However when play WITH SOUNDS on, i get a buch of weird values: while > the phone is NOT moving. > > This is really a big bug that makes life hard for Game Developers. > I tried to take an avarge of the last 5 values from the sensor.. but > this is not enough.. > > The harder the sounds plays: the higher the weird sensor values. > > When using the headphones: almost no weird values. > > > Seems that sounds interferes with the accelerometer sensor. > > BTW: more developers posted this issue but no reactions at all from > google!! > > http://groups.google.com/group/android-developers/browse_thread/thread/e1a67f197173abb5# > > http://groups.google.com/group/android-developers/browse_thread/thread/324a61badc59d58f/bc1e45433da68ce7 > > Is this is hardware problem? > How do i solve it? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

