Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们如何通过摇动设备来启动应用程序?我想做一些类似于应用程序“Appshaker”的事情。
在活动中,您可以使用SensorManager来检测震动,然后对震动做出反应。这就是 AppShaker 所做的。这是一个示例项目,演示了一种检测抖动的方法。
SensorManager