调用native 方法来开启和关闭vibrator:
native static void vibratorOn(long milliseconds);
native static void vibratorOff();
调用方法如下:
VibratorService.vibratorOn()
服务器之家 > 正文
调用native 方法来开启和关闭vibrator:
native static void vibratorOn(long milliseconds);
native static void vibratorOff();
调用方法如下:
VibratorService.vibratorOn()