The error right now I get from accessing content resolver is
That is because your Uri
does not match your android:authorities
. Your android:authorities
is com.xxxx.words.contentprovider.MainContentProvider
. Your Uri
uses com.xxxx.words.contentprovider
. These are not the same, and they need to be the same.
Also, please add android:exported
to your <provider>
, set to true
(if third-party apps should have complete access to the provider) or false
(if they should not).