[Mono-bugs] [Bug 655342] System.InvalidOperationException When Inheriting From IntentService

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 22 18:39:09 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=655342

https://bugzilla.novell.com/show_bug.cgi?id=655342#c5


--- Comment #5 from Dan Russell <danomania at gmail.com> 2010-11-22 15:39:08 PST ---
(In reply to comment #1)
>  2. Provide a default constructor, and provide a value to the base constructor:
> 
>     [Service]
>     public MyIntentService : IntentService {
>         public MyIntentService ()
>             : base ("worker-thread-name")
>         {
>         }
>     }

If you provide a default constructor, the Java code generated at
obj\Debug\android\src\intentservicesandbox does not have one. At runtime,
initialization fails with the following error:
D/dalvikvm(  269): newInstance failed: no <init>()

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list