Android:拒绝振动器许可(会发生什么?)

发布于 2024-12-26 14:46:31 字数 174 浏览 0 评论 0原文

我制作了一个具有使用振动器权限的应用程序。当我安装该应用程序时,如何接受或拒绝该权限?看来我不知道该权限,它只是安装而没有询问我。

另外,说我确实拒绝了该权限。它会阻止整个应用程序工作还是只会阻止振动器工作?如果它只是停止振动器工作,它是否会跳过引用振动器的java代码并正常进行?

任何帮助都会很棒。

I have made an app that has a permission for use of the vibrator. When I install that app, how do I get to accept or decline that permission? It seems like I have no knowledge of the permission and it just installs without asking me..

Also, say I did decline that permission. Would it stop the whole app from working or would it just stop the vibrator from working? If it just stops the vibrator from working, would it just skip the java code referring to the vibrator and carry on as normal?

Any help would be great.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

子栖 2025-01-02 14:46:31

当用户选择从 Android Market 安装时,系统会通知用户所需的权限。用户无法选择允许或拒绝这个或那个权限;他们会收到应用程序所需权限的通知,并且通过选择安装应用程序,他们将接受将授予所需权限。

如果您的应用程序的新版本要添加新权限,那么它将成为手动升级,用户必须接受新权限才能升级到新版本。

但用户不能在安装时选择性地拒绝软件的权限; Android 权限不是这样工作的。

The user is notified of the required permissions when they choose to install it from Android Market. Users don't get to choose to allow or deny this or that permission; they are notified of the permissions the app requires, and by choosing to install the app they are accepting that the require permissions will be granted.

If a new version of your app were to add new permissions, it would become a manual upgrade, and the user would have to accept the new permissions in order to upgrade to the new version.

But users can't selectively deny permissions to software at the time of installation; that's not how Android permissions work.

稚然 2025-01-02 14:46:31

您应该卸载您的应用程序,然后重新安装它,并查看是否要求用户授予 virabte 权限。您无法有选择地授予 Android 权限。任一应用程序都会按照您同意所有请求的权限进行安装,否则不会安装。

查看您的设置,您的手机振动器是否处于活动状态。

你的手机有振动器吗?

You should uninstall your app then reinstall it and see if the permission to virabte is asked to user. You can't selectively grant permission on android. Either app is installed as you agreed for all requested permission or it won't install.

Look in your settings if your phone vibrator is active.

Does your phone have a vibrator ?

风和你 2025-01-02 14:46:31

当安装 Android 应用程序时,会出现一个漂亮的大警告提示,通知用户应用程序请求的所有权限。此时用户可以接受或拒绝。如果用户接受,则安装该应用程序。如果他们拒绝,则不会安装该应用程序。

您无法接受或拒绝特定权限,这是一种全有或全无的情况。

When Android apps are installed a nice big warning prompt shows up informing the user of all permissions requested by the application. At this point the user may accept or decline. If the user accepts, then the application is installed. If they decline, the application is not installed.

You cannot accept or decline specific permissions, it's an all-or-nothing situation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文