[mono-android] Creating service in a new process

Miha Markic Miha at rthand.com
Fri Jun 8 13:50:20 UTC 2012


Imagine a service declaration like this
[Service(Label = "Local Spy Service")]
    public class SpyService: Service

And button's Click event like this:

StartService(new Intent(this, typeof(SpyService)));

This works fine. However, if I try running service in its own process (by adding Process attribute) like

[Service(Process = ":tubo", Label = "Local Spy Service")]

Then the application crashes without exceptions being thrown - only a message appears in the emulator. By looking at the device processes I see that the process "...:tubo" gets created.
A similar sample works fine from within Eclipse/java.
Is this a bug or something that I am missing?

Miha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120608/fb085302/attachment.html>


More information about the Monodroid mailing list