I have an example of a basic service in one of my samples on GitHub . The main idea is that you define a class that extends Service and decorates it with the Service attribute to create the appropriate configuration in AndroidManifest.xml (you could do it yourself, but you rarely need to).
[Service] public class MusicService : Service { public override IBinder OnBind(Intent intent) { return null; } public override void OnCreate() { base.OnCreate();
source share