Xamarin Android app packaging apk, xamarinapk
You can use Xamarin in Visual Studio to develop Android applications and generate apk files in three ways.
1. During debugging, The *** -Signed.apk file is automatically generated in bin \ debug under the Code directory, but the file Size is very large and is not recommended.
2. When Release is enabled, tick "deployment" to generate the deployment solution. After the solution is deployed, the *** -Signed.apk file will be automatically generated in bin \ Release under the Code directory, the file Size is small.
3. Package your own tool-Publish Android Application. You can package the tool step by step. The file Size is small.
Apk size Influencing Factors
The supported architecture system settings affect the size of the generated apk. for Android projects, right-click Properties and choose Application> Supportted ubuntures.
Armeabi, armeabi-v7a, x86 are checked, so the generated apk will be slightly larger, You can do not select the necessary architecture system as needed, the generated file will be reduced.
Take the Xamarin Tasky (Introduction to http://developer.xamarin.com/content/Tasky/ source code http://developer.xamarin.com/content/Tasky/Tasky.zip) as an example to illustrate the size of the impact
Apk Generation Method |
Apk size (K) |
Debug |
27618 |
Release Armeabi |
4060 |
Release Armeabi + armeabi-v7a |
5285 |
Release Armeabi + armeabi-v7a + x86 |
6638 |
How to package android programs developed with eclipse into apk files?
Right-click the project and the menu will pop up.
Move the mouse over the run as option to bring up the Sub-menu. Click Android application. It will be packaged into an apk.
Click the plus sign in front of the bin directory in the project to show the corresponding apk. Right-click the apk and select copy. Then click paste in a directory to copy the apk.
With XamarinAndroid and vs2010, how does one develop Android programs to connect to the physical machine?
Try the adb connect command