Мне нужно предложение о том, как определить количество движения устройства Android. Предположим, я положил телефон на стол или кровать, а затем, если кто-то постукивает по столу или сидит или укладывается на кровать, тогда я хочу обнаружить движение устройства андроида.
На самом деле я знаю, что у андроида есть API-интерфейсы датчиков движения, но я не знаю, какой датчик использовать и какой тип датчика лучше всего подходит для обнаружения такого типа.
Я был бы рад, если кто-то может поделиться базовым демо-кодом.