Xamarin Android app packaging apk, xamarinapk

Source: Internet
Author: User

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
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.