Visual Studio creates a cross-platform mobile app _01.cordova&xamarin

Source: Internet
Author: User

There are three modes for developing mobile applications:Native,hybird,Web, to develop cross-platform mobile applications, and want to interact with the local API , then hybird is a great choice.

As a . Net Programmer, you can use the familiar IDE,Visual Studio , to develop mobile apps, There is now a Visual Studio -based extension to help us develop quickly:

    • Cordova (Html/javacript)
    • Xamarin (. Net Framework)

please refer to the following article :

    • to be Windows, Android, and the IOS Device Development Application (. NET Framework)
    • to be Windows, Android, and the IOS Device Development Application (Html/javascript)
1 Cordova

Apache Cordova is through HTML , CSS and the Javascript to build a platform for on-premises mobile apps.

Cordova provides a set of device-related API , through this set of API , mobile apps can JavaScript Access native device features, such as cameras, microphones, and more.

Cordova It also provides a unified set of JavaScript class libraries, and the native code related to the devices used by these class libraries.

Cordova support for mobile operating systems: IOS, Android,ubuntu phone OS, Blackberry, Windows phone, Palm WebOS, Bada and the Symbian .

1.1 References
    • Apache Cordova

http://cordova.apache.org/

    • Apache Cordova for Visual Studio Extension

Http://www.visualstudio.com/en-us/explore/dn841948#Fragment_Overview

    • Telerik AppBuilder for Visual Studio Extension

Http://www.telerik.com/platform#overview

1.2 Apache Cordova for Visual Studio Extension

in the Visual Studio Update 4 after that, you can use a section called MDA of the Apache Cordova for Visual Studio Extensions , with this extension, you can Visual Studio on the cross-platform development, debugging, publishing, see the following diagram, smart tips, breakpoints debugging, is not very familiar with it.

1.3Telerik AppBuilder for Visual Studio Extension

AppBuilder is a model by Telerik development and maintenance of the mobile-side development framework, based on Cordova platform, this framework allows you to create a system that runs within minutes Android , IOS and the Windows Phone on the application.

AppBuilder Extension for Visual Studio currently only supported:

    • Visual Studio 2012
    • Visual Studio 2013

2 Xamarin

GetVisual Studio Update 2or later, you canWindowsThe device creates the application and addsWindows Projectand theWindows Phone Project. You can use a Generic Application project template for allWindowsDevice authoring applications. If you want toAndroidorIOSwriting applications that need to be installedXamarin. You can do this forWindows,Androidand theIOSThe device builds a common solution and then shares the code in a way that shares a project or a portable class library.

you can share the code under different platforms. Includes business logic, cloud integration, database access, or other code written by the . Net Framework . You can share more code between Windows and Windows Phone projects. Because of the differences in different platforms, You cannot share the UI part of the code.

2.1Windows Equipment

Windows 8.1 and the Visual Studio Update 2 after publishing , you are able to Windows phones, desktops, and the tablets Writing Applications .

    • Desktops : Desktop Applications
    • Tablets : Tablet PC app

If you are facing the above three platforms you can consider using a generic project template. This project template contains Windows project (for desktops and tablets), Windows Phone Project, and shared project. The Shared projects is New in Visual Studio Update 2 . with this template you can easily write tests for Windows and the Windows Phone Project code written by the device .

The solution shown contains three items (Windows Phone, Windows, and shared). You can pass Hub App (Universal apps) project templates to create such a solution .

Currently, this generic project template only supports C # and the C + +.

2.2 Android&ios Equipment

installation Xamarin , you can use C # to be Android and the IOS Device Development Application. Find the project template for Android and IOS as shown in.

     these templates will be native android and ios function provides c# object to access. You can write or So to access android and ios Span style= "font-family: the song Body;" > The device's local api and local user controls.

in the same solution, you can Android , IOS and the Windows Create the project. Shows a common project template that can share code in shared project with different projects.

Visual Studio creates a cross-platform mobile app _01.cordova&xamarin

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.