I want to show a message like “you made a shake” when a user shake the android mobile.
That means like when we press a button some action we can create using
button.setonclicklistiner()
like that i want to do something when a user shake the device.
how can i do that????
Check out Seismic from Square. I haven’t used it yet in my own work, but from the example you can declare a shake listener like the following: