【发布时间】:2017-01-23 12:21:17
【问题描述】:
我有在单独进程中运行的同步服务
<service
android:name=".local_data.SyncService"
android:exported="true"
android:process=":sync">
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
</service>
在除小米之外的每部手机上,它都成功启动了新进程,在进程选择器中我只看到主进程。我尝试在主进程中启动我的同步服务,它工作正常。
【问题讨论】:
-
你的代码一定有问题。在此处添加服务代码
标签: android process synchronization android-syncadapter