Language

ServiceInfo.FlagNativeService Field

Definition

Caution

This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.

Bit in #flags: If set, the system does not initialize the Android Runtime in a process which runs the service.

[Android.Runtime.Register("FLAG_NATIVE_SERVICE", ApiSince=37)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.", true)]
public const Android.Content.PM.ServiceInfoFlags FlagNativeService = 32;
[<Android.Runtime.Register("FLAG_NATIVE_SERVICE", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.", true)>]
val mutable FlagNativeService : Android.Content.PM.ServiceInfoFlags

Field Value

Value = 32

Implements

Attributes

Remarks

Bit in flags: If set, the system does not initialize the Android Runtime in a process which runs the service. Instead the system loads a library into the process and then starts the service from the entrypoint function in the library. The library and the entrypoint names are specified in metadata to the service tag. This flag is ignored if FLAG_ISOLATED_PROCESS is false or isn't specified. Set from the R.attr.nativeService attribute.

Android reference for android.content.pm.ServiceInfo.FLAG_NATIVE_SERVICE.

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.

Applies to