[Mono-bugs] [Bug 666701] IntentService - RuntimeException Unable to instantiate service...

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jan 24 15:23:00 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=666701#c1


--- Comment #1 from Jonathan Dick <jondick at gmail.com> 2011-01-24 20:22:59 UTC ---
Here's the generated java:


package mysample.intentservicesample;


public class IntentServiceSample
    extends android.app.IntentService
{
    static final String __md_methods;
    static {
        __md_methods = 
           
"n_onHandleIntent:(Landroid/content/Intent;)V:GetOnHandleIntent_Landroid_content_Intent_Handler\n"
+
            "";
        mono.android.Runtime.register
("mysample.IntentServiceSample.IntentServiceSample, mysample.IntentService,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
IntentServiceSample.class, __md_methods);
    }

    public IntentServiceSample (java.lang.String p0)
    {
        super (p0);
        if (getClass () == IntentServiceSample.class)
            mono.android.TypeManager.Activate
("mysample.IntentServiceSample.IntentServiceSample, mysample.IntentService,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "System.String,
mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
this, new java.lang.Object[] { p0 });
    }

    @Override
    public void onHandleIntent (android.content.Intent p0)
    {
        n_onHandleIntent (p0);
    }

    private native void n_onHandleIntent (android.content.Intent p0);

    java.util.ArrayList refList;
    public void monodroidAddReference (java.lang.Object obj)
    {
        if (refList == null)
            refList = new java.util.ArrayList ();
        refList.add (obj);
    }

    public void monodroidClearReferences ()
    {
        if (refList != null)
            refList.clear ();
    }
}

-- 
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