Android 振动问题

在安卓里面写了一个震动的方法,用Luaj调用 logcat提示调用成功 但是机器没有振动 是什么问题

需要权限?瞎猜的

权限加上了呀

猜测: 跟振动的时间长短有关系,time过短可能不会振动

【stackoverflow类似问题链接】:http://stackoverflow.com/questions/3108154/android-vibrating-device-doesnt-work

嗯 刚开始是时间的问题 后来改为3000以后 还是没有反应,

你在调用方法参数里 加个没用的参数试试看

public static void phoneVibrate(final int time){
s_instance.runOnGLThread(new Runnable() {
@Override
public void run() {
Vibrator v = (Vibrator)s_instance.getSystemService(Service.VIBRATOR_SERVICE);
v.vibrate(time);
}
});
}