Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ContentProvider - Do i need an entry in the manifest file?

Tags:

android

i have a simple question. Do i need for the use of a content provider an entry in the manifest file?

The content provider is only for my own application. I don't want to share informations with other apps (at the moment). I have an example open source project, where content providers are used a lot, but there is no "provider" entry in the manifest file... how does this works?

When i'm starting my app i get these error

"Failed to find provider info for...."

like image 541
Tobias Avatar asked Dec 29 '25 16:12

Tobias


1 Answers

Yes. It should point to your custom ContentProvider class. Inside your <application></application> block.

<provider
    android:name=".MyAppContentProvider"
    android:authorities="com.myapp.provider"
    android:enabled="true"
    android:exported="false" />
like image 146
James McCracken Avatar answered Dec 31 '25 09:12

James McCracken