震动demo //震动类 public Vibrator vibrator; public void zhendong() { vibrator = (Vibrator)getApplicationContext().getSystemService(getApplicat