天天看点

Testing your Xamarin app on Android device

i've develop a test application in xamarin studio (android with c#) and wanted to test it on my phone.

the application worked just fine in the device emulator (same os version) but when i install / open it on my phone, it just says "testapplication stopped working" i know from the online search that thousands of issues could cause this error message but my questions is :

is exporting my app on my droid as simple as :

compiling the app

taking the signed .apk in the .bin folder

dragging that .apk on the phone (i'm using airdroid to drag the file)

running the .apk (installing the app)

am i missing an obvious, magic step ?

answer:

i don't know how xamarin studio works, but this happened to me when trying the same, using visual studio.

i found out the application worked only when building in ​<code>​release​</code>​ mode.

not sure if xamarin studio has the same options (debug / release / etc)