How do you register a content provider in your AndroidManifest.xml file?

How do you register a content provider in your AndroidManifest.xml file?



A. <provider android:name="ProductsProvider" android:package="fu.android.provider.Products" I>
B. <provider android:name="ProductsProvider" android:authorities="fu.android.provider.Products" />
C. <provider android:name="ProductsProvider" android:class="fu.android.provider.Products" />
D. <provider android:name="ProductsProvider" android:path="fu.android.provider.Products" />


Answer: B


Learn More :