I have tested my application on debug mode. I tried to follow the step by step procedure at :docs.xamarin.com/guides/android/deployment,testing,_and_metrics/publishing_an_application/part_1-_preparing_an_application_for_release
As I do not want to publishing to Google Play store, I copied the apk file after executing zipalign, to another android device (Same as the one i use for development). After installing and and running the app, it just crash and could not run at all..
Please advice me how to properly package and deploy to an android device.
Thanks,
Posts
Can you post the contents of logcat from when your app is starting up? There will be clues there as to what is wrong.
How can i do that?
http://developer.android.com/tools/debugging/ddms.html
Do you mean that I have to switch to eclipse for deployment of application after develop on Xamarin?
No, you don't use Eclipse. Read the article. Open up DDMS and you can view the log cat. Ignore the Eclipse tutorial. DDMS is a part of the Android SDK.
ok right.... thanks I will try it out....
I am so sorry, I open up the DDMS from the Android SDK folder.. he knows but I do not how to use it create the Logcat file...
Hi rmacias, I managed to capture something like in the attached.
Seems to be the socket problem. But the program runs fine when connected to Xamarin.
After copying the DFRS.DFRS-Signed.apk file to the device and install, the app cannot run,. it just shutdown after launch...
Did you give your app INTERNET permissions (and all other relevant permissions) in your AndroidManifest file?
"Did you give your app INTERNET"
What did you mean? It is connected via wifi...
Does your app work in debug mode on your device?
You need to give you app permissions if it accesses internet resources for the release build. You should read up on the basics of Android development. Look at Section 3.2 to enable the necessary permissions.
http://docs.xamarin.com/guides/android/advanced_topics/working_with_androidmanifest.xml
ok.. thanks rmacias... you are really great.. thanks for your help
yes.. it works on debug mode but not on release mode.. may i know why is it so?
yes.. it works on debug mode but not on release mode.. may i know why is it so?
http://docs.xamarin.com/recipes/android/general/projects/add_permissions_to_android_manifest
Could be a too-aggressive linker problem like I have in my app.
Try changing the Release Linker option to 'Don't Link' and see if that works
Thank you so much.. It is now working on release mode....
I am have some problem again.. can someone help me?
Attached is the log.txt file
I re-attached the log.txt file