阅读背景:

检测手机是否在设备物理/软件键上振动

来源:互联网 

in Some cases in your app you just wanna the phone to vibrate if a certain button in your app has been clicked , in my case there is a search mode that switching to and from this mode will make the phone vibrate and also this would happen if the "back" key is pressed , and if the user has enabled the vibrate for software keys in setting then there will be 2 quick vibrates and its not cool , I was wondering if there is any way to detect this cause I cant simply disable it cause in some phones it may be disabled or the key is software so there wont be any vibrate at all thanksin Some cases in your app you just wanna the ph




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: