title: detect Shake in android
body: <p>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 detecting shake before 10 times or after 10 times. I have tried <a href="https://github.com/square/seismic" rel="nofollow noreferrer">Seiamic</a> and <a href="https://github.com/tbouron/ShakeDetector" rel="nofollow noreferrer">ShakeDetector</a> libraries. Please give me some valuable solution. </p>