vibrator 的用法很简单就两行代码:
// 实例化:
Vibrator vibrator = (Vibrator)getContext().getSystemService(Context.VIBRATOR_SERVICE);
// 震动
vibrator.vibrate(300);