开发者

Shake the device to launch an application in Android

开发者 https://www.devze.com 2023-03-01 13:32 出处:网络
How can we launch a application by just 开发者_Go百科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

How can we launch a application by just 开发者_Go百科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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号