V
V
Vasily Andreev2015-06-04 14:54:03
Android
Vasily Andreev, 2015-06-04 14:54:03

Is it possible to write an android program that responds to the "knock on the phone in your pocket" event?

Hello.
I accidentally saw an application for the iPhone knocktounlock and now I'm tormented by the question (since I'm not an android developer):
Theoretically, is it possible to write a program that will respond to the "knock on the phone in your pocket" event and send a message to a server on the Internet?
Or is it basically impossible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2015-06-04
@maaGames

Can. But it will take any shaking that fits the pattern of finger tapping as a "knock". Those. a service will be constantly launched that takes accelerometer readings and compares them with a given pattern: short-term accelerations in approximately one direction in the amount of n pieces for a given period of time..

S
Slender 1, 2015-06-04
@DEFAULT0

Maybe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question