私はAndroidの初心者です。私のパッケージ名は「com.example.medicineprovider」であるため、Androidの名前とAndroidの権限の命名方法の違いと混同しています。
<provider
android:name="com.example.medicineprovider"
android:authorities="com.example.provide.medicineprovider"
android:readPermission="com.example.medicineprovider.READ"
android:writePermission="com.example.medicineprovider.WRITE"
android:exported="true"
/>
回答:
回答№1は0上記の名前と権限が正しい
android:name="com.example.medicineprovider"
ContentProviderを実装するサブクラスを示すために使用されます
android:authorities="com.example.provide.medicineprovider"
Androidシステムは、権限に従ってコンテンツプロバイダーへの参照を格納します。この属性「android:authorities」はContentProvider Interfaceを参照します bath、name:attribute dontが含まれる場合があります 詳細な説明はこちら