ServiceAttribute ServiceAttribute Class


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

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class ServiceAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
type ServiceAttribute = 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.


ServiceAttribute() ServiceAttribute()

Constructs and initializes a new ServiceAttribute instance.


DirectBootAware DirectBootAware
Enabled Enabled

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

Exported Exported

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

Icon Icon

An icon representing the service.

IsolatedProcess IsolatedProcess
Label Label

A user-readable label for the service.

Name Name

The name of the class that implements the service.

Permission Permission

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

Process Process

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

RoundIcon RoundIcon

Applies to

See also