バイブレーターを振動/停止させるには
PhoneSystemクラスのsetAttributeメソッドを利用します。
例)
// バイブレーター振動
PhoneSystem.setAttribute(
PhoneSystem.DEV_VIBRATOR , PhoneSystem.ATTR_VIBRATOR_ON);
// バイブレーター停止
PhoneSystem.setAttribute(
PhoneSystem.DEV_VIBRATOR , PhoneSystem.ATTR_VIBRATOR_OFF);
|