Service.OnCreate Method

Definition

Called by the system when the service is first created.

C#
[Android.Runtime.Register("onCreate", "()V", "GetOnCreateHandler")]
public virtual void OnCreate();
Attributes

Remarks

Called by the system when the service is first created. Do not call this method directly.

Java documentation for android.app.Service.onCreate().

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35