Android 同步适配器和contentAuthority-如何定义?
我正在创建自己的内容提供商。Android 同步适配器和contentAuthority-如何定义?,android,android-contentprovider,android-syncadapter,Android,Android Contentprovider,Android Syncadapter,我正在创建自己的内容提供商。 我应该为contentAuthority选择唯一的名称。但是如果我用“com.example.something”这样的标准方式定义它,那么同步屏幕上会显示相同的值,并且无法转换该值(资源id不能作为contentAuthority的值传递)。好的,我找到了解决方案-一旦定义了ContentProvided,就会显示其名称(标签)
我应该为
contentAuthority
选择唯一的名称。但是如果我用“com.example.something”这样的标准方式定义它,那么同步屏幕上会显示相同的值,并且无法转换该值(资源id不能作为contentAuthority的值传递)。好的,我找到了解决方案-一旦定义了ContentProvided,就会显示其名称(标签)