Xamarin Android not respond after build with embedded jar -


i have created xamarin android app , binding library contains jar file (build action embedded jar).

the app build successful after add binding library reference. when call function in jar, app shows no respond (black screen). doesn't throw exception.

i try debug in visual studio when line goes jar file (reach line of function in jar), disappear , cannot find line in jar file goes wrong.

how can debug in situation?

below code example, bankcard class in jar file. app not respond after running mbankcard.cardreaderdetact function.

    private bankcard mbankcard = new bankcard(android.app.application.context);     byte[] respdata = new byte[100];     int[] resplen = new int[10];     public string cardreader()     {         try         {             var retvalue = mbankcard.cardreaderdetact(bankcard.cardtypenormal, bankcard.cardnmodepicc, bankcard.cardreadpiccdetact, respdata, resplen, "app1");             return retvalue.tostring();         }         catch(exception e)         {             return "something wrong";         }     } 

updates

i figure out problem line below. after runs, won't go mainactivity.

jnienv.finishcreateinstance (((global::java.lang.object) this).handle, class_ref, id_ctor_landroid_content_context_, __args); 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -