Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Create Java Bind Library in Xamarin and add .Jar file in Library
and Add reference of this Project in My Project
and library is call - Com.Symbol.Emdk

when i Implement this one -
Java
EMDKResults results = EMDKManager.GetEMDKManager(Android.App.Application.Context   ,this);

then Go Here

Java
[Register ("getEMDKManager", "(Landroid/content/Context;Lcom/symbol/emdk/EMDKManager$EMDKListener;)Lcom/symbol/emdk/EMDKResults;", "")]
        public static global::Com.Symbol.Emdk.EMDKResults GetEMDKManager (global::Android.Content.Context p0, global::Com.Symbol.Emdk.EMDKManager.IEMDKListener p1)
        {
            if (id_getEMDKManager_Landroid_content_Context_Lcom_symbol_emdk_EMDKManager_EMDKListener_ == IntPtr.Zero)
                id_getEMDKManager_Landroid_content_Context_Lcom_symbol_emdk_EMDKManager_EMDKListener_ = JNIEnv.GetStaticMethodID (class_ref, "getEMDKManager", "(Landroid/content/Context;Lcom/symbol/emdk/EMDKManager$EMDKListener;)Lcom/symbol/emdk/EMDKResults;");
            global::Com.Symbol.Emdk.EMDKResults __ret = global::Java.Lang.Object.GetObject<global::Com.Symbol.Emdk.EMDKResults> (JNIEnv.CallStaticObjectMethod  (class_ref, id_getEMDKManager_Landroid_content_Context_Lcom_symbol_emdk_EMDKManager_EMDKListener_, new JValue (p0), new JValue (p1)), JniHandleOwnership.TransferLocalRef);
            return __ret;
        }

I have got error in This Line-
global::Com.Symbol.Emdk.EMDKResults __ret = global::Java.Lang.Object.GetObject<global::Com.Symbol.Emdk.EMDKResults> (JNIEnv.CallStaticObjectMethod  (class_ref, id_getEMDKManager_Landroid_content_Context_Lcom_symbol_emdk_EMDKManager_EMDKListener_, new JValue (p0), new JValue (p1)), JniHandleOwnership.TransferLocalRef);


Please Help me How to use Java bind library
Posted
Updated 19-Aug-14 22:03pm
v2
Comments
Richard MacCutchan 20-Aug-14 4:04am    
What error?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900