我试图在振动手机时使用振动模式.我正在使用:
Vibrator v = (Vibrator) this.getSystemService(Context.VIBRATOR_SERVICE);
// Vibrate for 500 milliseconds
long[] longs = { 2, 0, 0, 0, 2, 0 , 0, 0, 2 };
v.vibrate(longs, 1);
Run Code Online (Sandbox Code Playgroud)
它只是不停止振动.
v.vibrate(longs, -1);它根本不振动.v.vibrate(longs, 0);它根本不振动.v.vibrate(longs, 2);或任何高于1的数字,它会无限期地振动.我读过的文档和一些牛逼ü 牛逼Ø 里亚尔,我不觉得我做错了什么在这里.为什么它不能正常振动?
注意:我使用其他正确振动图案的应用程序,所以我知道这不是我手机的问题.
| 归档时间: |
|
| 查看次数: |
273 次 |
| 最近记录: |