System.out.println("rece_msg:"+str);//打印出接收到的信息
if(str=="NO"||str=="WM"||str=="MM"){
Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
long[] pattern = new long[] { 100, 10, 100, 1000 };
vibrator.vibrate(pattern, -1);
}
//不能通过调用以上代码实现振动
慕设计2395807