I am trying to hit an API when user shake a device 10 times. I have tried many git sample and stack overflow solution but non of them did solve my problem. Some of them dete
By Using SensorListener
Please check this ticked answer...
You have to adjust SHAKE_THRESHOLD value to achieve this
How to detect shake event with android?
Thank you!