Xamarin Java Binding Bixolon Bluetooth Printing Library problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Xamarin Java Binding Bixolon Bluetooth Printing Library problem

This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi ,

I need this printing Java library (jar) working for Graphics I had to play a little with one class

  <attr path="/api/package[@name='com.bixolon.android.library.charset']/class[@name='ByteCharset']" name="visibility">public</attr>

but i can fix this Error for overriding this class

Error 1 'Com.Bixolon.Android.Library.Charset.ByteCharsetInvoker.CompareTo(Java.Lang.Object)': no suitable method found to override C:\xDESARROLLO\xVMobileCrossPaltform_V1.1\biz.Bixolon\obj\Debug\generated\src\Com.Bixolon.Android.Library.Charset.ByteCharset.cs 210 40 biz.Bixolon

------------------------------- this is the generated code that is trying to override ---------------
if i take the OVERRIDE for the method i can make this library work but If i need to rebuild i have to change everytime the code please is there any way to play with metadata.xlm to solve this overriding issue

        [global::Android.Runtime.Register ("com/bixolon/android/library/charset/ByteCharset", DoNotGenerateAcw=true)]
        internal partial class ByteCharsetInvoker : ByteCharset {

                public ByteCharsetInvoker (IntPtr handle, JniHandleOwnership transfer) : base (handle, transfer) {}

                protected override global::System.Type ThresholdType {
                        get { return typeof (ByteCharsetInvoker); }

                static IntPtr id_compareTo_Ljava_lang_Object_;
                [Register ("compareTo", "(Ljava/lang/Object;)I", "GetCompareTo_Ljava_lang_Object_Handler")]
                public override global::System.Int32 CompareTo (global::Java.Lang.Object another)
                        if (id_compareTo_Ljava_lang_Object_ == IntPtr.Zero)
                                id_compareTo_Ljava_lang_Object_ = JNIEnv.GetMethodID (class_ref, "compareTo", "(Ljava/lang/Object;)I");
                        global::System.Int32 __ret = JNIEnv.CallIntMethod  (Handle, id_compareTo_Ljava_lang_Object_, new JValue (another));
                        return __ret;