标签:
1首先在AndroidManifest.xml中添加震动权限
2代码中加入:
Vibrator vib = (Vibrator) this.getSystemService(Service.VIBRATOR_SERVICE); vib.vibrate(500);
Android 手机震动功能实现
原文地址:http://www.cnblogs.com/netcorner/p/4666887.html