mainfest中的声明:

<serviceandroid:enabled=["true" | "false"]
         android:exported[="true" | "false"]
         android:icon="drawable resource"
         android:label="string resource"
         android:name="string"
         android:permission="string"
         android:process="string">
    . . .
</service>


其中endabled标示是否可用,
exported标示是否只是在所有的application可用,如果为false的情况下,即使有intent-filter匹配,也无法打开,
permission为自定义的权限,调用时需要加上这个权限,
process这里是定义所在的进程,如果是远程的写为:
android:process=":remote",其中“:”很重要,“remote"和":remote"不是同一个意思

转自:http://blog.csdn.net/pipisky2006/article/details/6584471

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-10-26
  • 2022-12-23
  • 2021-08-22
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-21
  • 2021-06-06
  • 2021-05-06
  • 2022-12-23
  • 2021-11-19
  • 2021-11-04
相关资源
相似解决方案