- 权限
<uses-permission android:name="android.permission.VIBRATE"/>
- 使用
Vibrator vibrator = (Vibrator)_activity.getSystemService(VIBRATOR_SERVICE);
vibrator.vibrate(100);
<uses-permission android:name="android.permission.VIBRATE"/>
Vibrator vibrator = (Vibrator)_activity.getSystemService(VIBRATOR_SERVICE);
vibrator.vibrate(100);
本文标题:Android 手机震动
本文链接:https://www.haomeiwen.com/subject/pavkhftx.html
网友评论