Vibrator--android 振动器

来源:互联网 发布:淘宝层级划分金额 编辑:程序博客网 时间:2024/04/29 11:39
       Vibrator mVibrator = (Vibrator)getSystemService(VIBRATOR_SERVICE);

        mVibrator.vibrate(3000);

这样就可以启动振动器