Does anyone have any idea how the phone detects knocks and differentiates it from, say, rolling around in your backpack? I know the LG G2 also has a "knock detection", e.g. the phone turns on when you knock on it twice. I want this feature in one of my apps so I'm just curious about how this is done.
I'd assume the accelerometer is able to differentiate between the sharp staccato of a rapping of the knuckles vs. the steady circular motion of rolling.
Comments
Does anyone have any idea how the phone detects knocks and differentiates it from, say, rolling around in your backpack? I know the LG G2 also has a "knock detection", e.g. the phone turns on when you knock on it twice. I want this feature in one of my apps so I'm just curious about how this is done.
I'd assume the accelerometer is able to differentiate between the sharp staccato of a rapping of the knuckles vs. the steady circular motion of rolling.