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](/include/ArticleImages/120/deploy1.jpg)
![deploy2.jpg](/include/ArticleImages/120/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](/include/ArticleImages/120/deploy4.jpg) ![deploy3.jpg](/include/ArticleImages/120/deploy3.jpg)
- In the Add New Item dialog, select Visual
C# Code and name the new code file ConcateText.cs
![deploy5.jpg](/include/ArticleImages/120/deploy5.jpg)
- Enter your business logic in
the added class.
![deploy6.jpg](/include/ArticleImages/120/deploy6.jpg)
![deploy7.jpg](/include/ArticleImages/120/deploy7.jpg)
- Select Project and Choose Properties by Right
click then update application name and package name.
![deploy8.jpg](/include/ArticleImages/120/deploy8.jpg)
- After updated project properties, build
project in release mode.
![deploy9.jpg](/include/ArticleImages/120/deploy9.jpg) ![deploy10.jpg](/include/ArticleImages/120/deploy10.jpg)
- Choose Archive option by Right clicking
project file.
![deploy11.jpg](/include/ArticleImages/120/deploy11.jpg)
![deploy12.jpg](/include/ArticleImages/120/deploy12.jpg)
- Click Distribute button to start deploying
application
![deploy13.jpg](/include/ArticleImages/120/deploy13.jpg)
- Click on Ad Hoc button to start generating apk
file for mobile.
![deploy14.jpg](/include/ArticleImages/120/deploy14.jpg)
- Add a keystore to start signing, keep
remember password for further use.
![deploy15.jpg](/include/ArticleImages/120/deploy15.jpg)
![deploy16.jpg](/include/ArticleImages/120/deploy16.jpg)
- Click on Save As to save the apk file
in local path by entering password.
![deploy17.jpg](/include/ArticleImages/120/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. |