Android shaking

I want to add a shake listener to my android app. What I want here, when I shake my Android device, it will perform some action. How to do it? Later I want when my device falls, it will make a sound. How to do it? Please help someone!

+3
source share
1 answer

You will find useful materials at: android-shake-detection-listener also see here: android-i-want-to-shake-it

Hope this helps.

+7
source

Source: https://habr.com/ru/post/1788174/


All Articles