How to address multiple content providers?

前端 未结 1 1771
不知归路
不知归路 2021-02-04 05:32

I created two content providers that work on two different tables of the same SQLite database. They share a single instance of SQLiteOpenHelper as described in the

相关标签:
1条回答
  • 2021-02-04 06:01

    The android:authorities needs to be unique for each content provider. The documentation is here quoted from doc

    The content: scheme identifies the data as belonging to a content provider and the authority (com.example.project.healthcareprovider) identifies the particular provider. The authority therefore must be unique.

    0 讨论(0)
提交回复
热议问题