Android Technology development experience to share with you
private SensorManager proximitySensor; vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE); // 初始化Vibrator
vibrator.vibrate(1000); // 震動1秒
long[] pattern = { 0, 1000 }; vibrator.vibrate(pattern, 0); //連續震動1秒
vibrator.cancel();
張貼留言
沒有留言:
張貼留言