2011-04-27 68 views

回答

12

從活動中,您可以使用SensorManager來檢測搖動,然後對搖動做出反應。這就是AppShaker所做的。 Here is a sample project展示了一種檢測抖動的方法。

+0

正在尋找確切的東西!謝謝。酷應用btw – 2011-04-27 11:59:30

+0

@MahadevanSreenivasan請檢查這個問題:http://stackoverflow.com/questions/22319601/shake-phone-to-launch-app – Sun 2014-03-15 08:04:41

相關問題