在http://developer.android.com/training/sync-adapters/creating-sync-adapter.html#DeclareSyncAdapterManifest的谷歌开发者文档给服务声明本例中的清单:AndroidManifest.xml应用程序/ intent-filter元素是否可以包含值?
<service
android:name="com.example.android.datasync.SyncService"
android:exported="true"
android:process=":sync">
<intent-filter>com.example.android.datasync.provider
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
</service>
要重申的是,上面的XML是由谷歌写的,自己的Android开发者文档中,在上面的链接。
请注意intent-filter元素的值:com.example.android.datasync.provider
。 http://developer.android.com/guide/topics/manifest/intent-filter-element.html中的意图过滤器开发者文档没有说它是有效的,并且没有说明如果值存在时如何使用该值。
它是有效的意图过滤器有一个值,如果是的话那么值将被用于什么?
如果它不是有效的,那么Google可能通过编写这个文件意图达到什么目的?