摘要: 声明:import android.os.Vibrator;1 Vibrator mVibrator;取得震动服务的句柄:1 mVibrator = (Vibrator)getApplication().getSystemService(VIBRATOR_SERVICE);其包含两个接口:1 1. ... 阅读全文
posted @ 2015-08-24 17:22 晕菜一员 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 要监视原始的传感器数据,你需要实现两个通过SensorEventListener接口暴露的回调方法:onAccuracyChanged()和onSensorChanged()。传感器数据的速度值,这些值如下:1.SENSOR_DELAY_GAME : 如果利用传感器开发游戏,建议使用该值。 一般大多... 阅读全文
posted @ 2015-08-24 17:13 晕菜一员 阅读(375) 评论(0) 推荐(0) 编辑