How can we launch a application by just shaking the device? I want to do something similar to the app "Appshaker".
From an activity, you can use the SensorManager
to detect a shake, then react to that shake. That is what AppShaker does. Here is a sample project demonstrating one way to detect a shake.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With