IllegalArgumentException: Unknown URL content:// CONTENT

前端 未结 2 417
攒了一身酷
攒了一身酷 2020-12-03 16:05

IllegalArgumentException: Unknown URL content://

^ Having a nightmare with the above. I\'ve checked my variables and paths but can\'t see what the issue is? Greatly

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 16:53

    First, move to be a child of , not .

    Second, change android:exported="true" to android:exported="false", until such time as you secure your ContentProvider. As it stands, once you fix the element location as noted above, any app can read and write anything in your provider, which is unlikely to be what the user wants.

提交回复
热议问题