enable vibrate mode in android apps

徘徊边缘 提交于 2019-12-12 01:54:12

问题


i m setting vibrate mode in my app so that when notification comes phone gets vibrated. I do see many apps uses different profiles like low, medium & high as option in vibrate mode.

i know the way to use vibrate in android apps ie

Vibrator vibrator;
vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(3000);

for different profiles, we need to set the time manually or any system defined standard way is there to use for vibrate option?

来源:https://stackoverflow.com/questions/27746707/enable-vibrate-mode-in-android-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!