本文介绍了什么是机器人:启用意味着服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是机器人:启用意味着服务?的描述说,这是它是否可被系统实例化。这意味着什么?可它在所有使用?可它只能在本地使用呢?如果你能以某种方式使用禁用服务的话,你是怎么开始的呢?如果它不能在所有凭什么在世界上采用的是点?你不能只注释掉服务标签呢?
我正在研究制造未由其他应用程序使用的服务。不知道的Adroid:启用,可用于这一目的。
解决方案
It means whether it can run.
Not if it is disabled.
Not if it is disabled.
android:disabled
is effectively inherited, and it definitely has use cases for activities and BroadcastReceivers. In the case of a service, it would be less likely to be used, but might still have merit (e.g., an API for third parties that the user can opt out of).
Java code cannot do that at runtime. The value of android:enabled
, however, can be modified through PackageManager
at runtime.
这篇关于什么是机器人:启用意味着服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!