Conflicting content providers

前端 未结 1 1897
青春惊慌失措
青春惊慌失措 2021-01-06 09:29

I am developping an application using a ContentProvider. It is declared in the manifest :



        
相关标签:
1条回答
  • 2021-01-06 10:07

    A solution would be that the full version migrate the data from a demo content provider to the full version content provider, but I would rather avoid that.

    Here is the likely sequence of events:

    1. User installs lite version
    2. User users lite version, storing data
    3. User upgrades to full version, but you don't copy over the data per your quoted passage above
    4. User uninstalls the lite version, deleting its data
    5. User gives you a one-star rating on the Market

    You need to clone the data from the lite to the full version on the first run of the full version to avoid this problem.

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