My Android Contentprovider Can't Find Contentresolver
My goal is writing a ContentProvider without an Activity. For testing I wrote a test - activity in a own app. For those who want to tell me that there is still a logger included in
Solution 1:
<providerandroid:name=".LogServiceProvider"android:authorities="de.xyz.android.log4android"android:exported="true" />
should help :)
Solution 2:
One esoteric way in which this can fail is if you have a constructor defined on your content provider that takes an argument. That will cause the default 0 argument constructor to not exist. This causes the runtime registration of the provider to fail because the system cannot find a zero argument constructor in the class you specified under android:name in the manifest.
Post a Comment for "My Android Contentprovider Can't Find Contentresolver"