ContentProviderAttribute ContentProviderAttribute Class


Generates a /manifest/application/provider element within AndroidManifest.xml.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public class ContentProviderAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
type ContentProviderAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute


Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.


ContentProviderAttribute(String[]) ContentProviderAttribute(String[])

Constructs and initializes a new ContentProviderAttribute instance with the specified URI authorities.


Authorities Authorities

The URI authorities that identify data under the perview of the content provider.

DirectBootAware DirectBootAware
Enabled Enabled

Whether or not the provider can be instantiated by the system.

Exported Exported

Whether or not the provider can be launched by components of other applications.

GrantUriPermissions GrantUriPermissions

Whether or not those who ordinarily would not have permission to access the content provider's data can be granted to do so.

Icon Icon

An icon representing the provider.

InitOrder InitOrder

The order in which the content provider should be instantiated.

Label Label

A user-readable label for the provider.

MultiProcess MultiProcess

Whether an instance of the provider can be launched into the process of the component that started it.

Name Name

The name of the class that implements the provider.

Permission Permission

The name of a permission that clients must have to launch the provider.

Process Process

The name of the process in which the activity should run.

ReadPermission ReadPermission

A permission that clients must have to query the content provider.

RoundIcon RoundIcon
Syncable Syncable

Whether or not the data under the content provider's control is to be synchronized with data on a server.

WritePermission WritePermission

A permission that clients must have to make changes to the data controlled by the content provider.

Applies to

See also