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
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
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
3 matches
Mail list logo