Android > XAMARIN >> Build Xamarin Apps Views : 4615
Rate This Article :

Build and deploy Sample Android App using XAMARIN

Mobile Application Tools in VS:

  •          Native apps with .NET (XAMARIN)
  •          Hybrid apps with JavaScript (CORDOVA)
  •       Native apps with C++


XAMARIN overview:

XAMARIN is a tool which is used to write native Android, iOS, and Windows apps with native user interfaces and share code across multiple platforms, including Windows and macOS with C# codebase.


Create Sample Android Application:

We will see how to create simple android application using XAMARIN here with simple steps,

  • Create New Project and choose Android à Blank App (Android)

                                                 deploy1.jpg

 

  deploy2.jpg

  • Expand the Resources folder and then the layout folder in the Solution Explorer. Double-click Main.axml to open it in the Android Designer and place UI fields.

                     deploy4.jpg

               deploy3.jpg

  • In the Add New Item dialog, select Visual C# Code and name the new code file ConcateText.cs

      deploy5.jpg

  • Enter your business logic in the added class.

    deploy6.jpg

     deploy7.jpg

  • Select Project and Choose Properties by Right click then update application name and package name.

   deploy8.jpg

  • After updated project properties, build project in release mode.

  deploy9.jpg

deploy10.jpg

  • Choose Archive option by Right clicking project file.

  deploy11.jpg

   deploy12.jpg

  • Click Distribute button to start deploying application

 deploy13.jpg

  • Click on Ad Hoc button to start generating apk file for mobile.

  deploy14.jpg

  • Add a keystore to start signing, keep remember password for further use.

  deploy15.jpg

   deploy16.jpg

  • Click on Save As to save the apk file in local path by entering password.

  deploy17.jpg


  • Now you can be able to move the apk file to mobile and install generated application.


Thanks for reading this article. Please give your feedback to improve this.

About Author
Karthik G
Total Posts 3
-
Comment this article
Name*
Email Address* (Will not be shown on this website.)
Comments*
Enter Image Text*
   
View All Comments
Comments not posted yet!! Please post your comments on this article.
  Privacy   Terms Of Use   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.