且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

振动器许可强制关闭

更新时间:2023-02-26 22:10:32

您需要添加在manifest文件中的使用许可权标记(作为一个孩子的清单元素,同为许可标记):

You need to add a uses-permission tag in the manifest file (as a child of the manifest element, same as the permission tag):

<uses-permission android:name="android.permission.VIBRATE" />

据我所知,许可标签仅在下载应用程序时,额外的文本/图形信息添加到权限请求,或者添加新的权限提供额外的信息给用户。我通常使用这两个是安全的。

As far as I know, the permission tag is only used to add additional text/graphic information to the permissions request when downloading the app, or to add new permissions to provide additional information to your users. I usually use both to be safe.