android震动的参数怎么设置
时间:2014-10-20 22:44:50
收藏:0
阅读:190
============问题描述============
怎么设置振动的参数可以使振动强大变大,像系统来电时那样。
mVibrator01 = (Vibrator) getApplication().getSystemService(Service.VIBRATOR_SERVICE); mVibrator01.vibrate(new long[] { 400, 800, 1200, 1600 }, 0);
参数怎么设置振动比较强。
============解决方案1============
long[] pattern :自定义震动模式 。数组中数字的含义依次是[静止时长,震动时长,静止时长,震动时长。。。]时长的单位是毫秒
原文:http://www.cnblogs.com/llj1985522/p/4038768.html
评论(0)