我在service
中看到了AndroidManifest.xml
这样的定义:
<service
android:name="****"
android:exported="true"
android:process=":auth">
<intent-filter>
<action android:name="****"/>
</intent-filter>
</service>
我想知道什么是
android:process=":auth">
我认为它与认证协议有关,但我不确定它的作用和内容&#34;:auth&#34;代表。
答案 0 :(得分:0)
dplyr
如果分配给此属性的名称以冒号(“android:process="string"
”)开头,则在需要时创建一个专用于应用程序的新进程,并在该进程中运行该服务。如果进程名称以小写字符开头,则服务将在该名称的全局进程中运行,前提是它具有此权限。这允许不同应用程序中的组件共享进程,从而减少资源使用。
来源:https://developer.android.com/guide/topics/manifest/service-element.html#proc