Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我正在尝试做的事情.. 每当事件发生时,设备应该振动几秒钟。
我试着用 Display.getDisplay(this).vibrate(2000);
Display.getDisplay(this).vibrate(2000);
在设备上进行测试时它没有振动 甚至尝试将设备配置文件设置为振动(主动)
我在这里错过了什么吗?
使用Alert.isVibrateSupported()、Alert.startVibrate(time)和Alert.stopVibrate()