[android-developers] Re: Detect shaking

2009-03-01 Thread Miles Smith
As I haven't really implemented anything with the accelerometer yet, I don't know exactly, but I would go about it by monitoring normal, non-shaking values from the sensor, then anything that fell out of those ranges for a certain amount of time would be considered shaking. my 2 cents. On Sun, Ma

[android-developers] Re: Detect shaking

2009-03-01 Thread JP
Don't expect it to be terribly accurate. Good luck. On Mar 1, 5:58 pm, Charlie Collins wrote: > You probably want the SensorManager and SensorListener: > > http://code.google.com/android/reference/android/hardware/SensorManag... > > http://code.google.com/android/reference/android/hardware/Sens

[android-developers] Re: Detect shaking

2009-03-01 Thread Charlie Collins
You probably want the SensorManager and SensorListener: http://code.google.com/android/reference/android/hardware/SensorManager.html http://code.google.com/android/reference/android/hardware/SensorListener.html Also TiltLander has a nice concise example: http://code.google.com/p/tiltlander/sour