Monodroid for android service

I want to use monodroid to develop an Android application that works as a help desk.

Can anyone point to a pointer to sample code on how to do this?

Thanks!

+4
source share
1 answer

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(); // ... } public override void OnStart(Intent intent, int startId) { base.OnStart(intent, startId); // ... } public override void OnDestroy() { base.OnDestroy(); // ... } } 
+10
source

All Articles