android应用程序需要哪些权限才能使用Alarm Manager Service? [英] which permissions an android application need in order to use the Alarm Manager Service?

查看:279
本文介绍了android应用程序需要哪些权限才能使用Alarm Manager Service?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果android应用程序要使用Alarm Manager Service,那么该应用程序需要具有哪些权限?

If an android application wants to use the Alarm Manager Service, then which permissions the application needs to have?

我已经测试过,看来应用程序不需要使用警报管理器服务的任何权限.

I have tested that it seems that application does not need to have any permission to use the Alarm Manager Service.

是真的吗?

推荐答案

是的,这是事实.您不必添加任何特殊服务.请记住,重新启动听筒时,您设置的警报将丢失,因此您可能需要在启动时重新安排它们的时间,这需要android.permission.RECEIVE_BOOT_COMPLETED权限.

Yes, it is true. You do not have to add any special service. Keep in mind that when the handset is restarted the alarms you have set will be lost, so you may want to re-schedule them at boot time, which requires the android.permission.RECEIVE_BOOT_COMPLETED permission.

这篇关于android应用程序需要哪些权限才能使用Alarm Manager Service?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆