We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The Ketai Library has stuff for like onDoubletap, and onFlick, but I can't any thing for onShake, or any other library. does anyone know a way to detect if someone shakes the phone, for my app to respond in the correct way?
Answers
You will check the accelerometer data. You need to differentiate between simple changes of acceleration and quick and multiple changes of the acc data. The latter is what would account as a shake. You keep a timer to make sure this quick and multiple acc changes happen within a time frame.
Kf
How would I go about doing that?
You'd start by creating an application that logs the sensor data, and then you'd look at those logs to see if you can figure out a pattern.
@coolphill -- shake detection is also a common problem in Android development.