https://www.cnblogs.com/huansky/p/13785634.html

示例demo

https://blog.csdn.net/msn465780/article/details/128434269

问题整理

  • 应用间通讯出现‘Failed to find provider info for ’的问题
    通过https://blog.csdn.net/qq_34727886/article/details/110951082 ,在client的manifests节点下增加queries节点。

    <queries>
        <package android:name="server包名" />
    
        <!-- 也可以单独指定provider -->
    <!--        <provider android:authorities="com.example.databasetest.provider" />-->
    </queries>
  • Android12出现The authority unknown does not match the one of the contentProvider错误,Android7正常。


0 条评论

发表回复

您的电子邮箱地址不会被公开。