[android-developers] OnSensorChanged

2011-04-20 Thread Nathaniel Warner
I need to boost the accuracy of the accelerometer or at least increase the number of times that it triggers onSensorChanged (or the accelerometer is polled). Is there any way to do that? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] onSensorChanged: synchronized (this)?

2009-10-10 Thread DD
Hi, I have a pretty simple question. For public void onSensorChanged (int sensor, float[] values){synchronized (this) { what's "synchronized (this) " for...? I'm really new to Java...what's gonna happen if I dont have this? Thank you very much.!! --~--~-~--~~~---~--~-

[android-developers] OnSensorChanged not working in standby even with Partial Wakelock

2011-02-15 Thread Andrew
Hi I have a HTC Desire with Android 2.2 firmware on it. I'm developing an app that needs to use the accelerometer when the phone screen turns off. I realise that this can't be done in standby as the CPU turns off, but using a partial wakelock keeps the CPU running. But as soon as the screen turns o