权限:
<uses-permission android:name="android.permission.VIBRATE" />
代码:
Vibrator vibrator=(Vibrator)getActivity().getSystemService(Service.VIBRATOR_SERVICE); vibrator.vibrate(new long[]{0,200,200,200}, -1);
参数含义:静止时长,震动时长,静止时长,震动时长。。。
posted on 2019-07-04 18:04 赵子隆 阅读(231) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 赵子隆 Powered by .NET 9.0 on Kubernetes