java安卓:doesnotification。默认\u振动是否需要振动权限?
有时候我读到了
notification.defaults|= Notification.DEFAULT_VIBRATE;
及
notification.defaults = Notification.DEFAULT_ALL;
需要振动许可
<uses-permission 安卓:name="安卓.permission.VIBRATE" ></uses-permission>
但有时我读到它不是
哪一个是正确的信息
# 1 楼答案
你可能对阅读感兴趣:https://android.googlesource.com/platform/frameworks/base/+/cc2e849
从4.2.1开始:
# 2 楼答案
显然,你需要振动许可。谢谢