Accessing custom content provider from different app

后端 未结 5 1757
醉梦人生
醉梦人生 2020-12-17 10:15

Hello i have created an android app that uses a custom content provider named CustomCP, it implements all methods and everything works fine while managing data inside the ap

5条回答
  •  醉梦人生
    2020-12-17 11:09

    After creating the content provider , specify the content provider in the manifest file. You can mention content provider using the tag. Inside the provider tag dont forget to mention the name and authorities attributes. This declaration should be ..

    
        
    

    Here what you mention in the authorities attribute that should be match when you try to get the data from the provider.

提交回复
热议问题