C # 's Android phone app development _android

Source: Internet
Author: User

Android currently has about 75% of the world's market share, with Android handsets holding even more than 90%. Therefore, a computer to hear the development of mobile phone applications, one like the devil, since there are so many people interested in it, then we also play a game. However, this module is not about how to use Java development, but all in C # to achieve.

Why use C # to achieve? The reason is very simple, the current mobile phone market after years of you fight me, now left Android, IOS, Windows phone can also fight each other ruthless, all the rest are beaten down to find the north. However, to learn Android application development to use Java, Learning iOS application development to use OBJECTIVE-C, learning windowsphone application development to use C + +, my God, this is not deliberately toss people, is not a language can be "take all" of these three kinds of application development? The answer is "yes" and that is "C #".

The advantages of developing mobile applications with C #

Use C # to develop mobile applications, recommend preferred VS2015, this is because VS2015 built-in is C # 6.0, a lot of the original implementation of more cumbersome operation, under the VS2015 also become very simple.

1. Cross-platform mobile application development

VS2015 's mobile Cross-platform uses the Xamarin architecture, which allows developers who are already familiar with Visual Studio to develop mobile applications directly without being familiar with other development tools.

(1) win7:vs2015+c# to fix Android, IOS

When you create a project with VS2015 under Win7, you can use the project template for iOS and Android directly. The development team can also incorporate iOS and Android program code into ALM, and you can use TFS (Team Foundation Server) to manage version creation and configuration.

When you write mobile apps in C #, you can use the Full-featured Android and iOS designer to create 100% native user interfaces (Native UI Code) that are customized for each platform. In addition, use. NET, you can also access more than 20,000 directly when you build mobile applications. NET Library and Xamarin components.

(2) win10:vs2015+c# to fix Android, IOS, Windows Phone

When you create projects with VS2015 under WIN10, you can quickly build mobile applications for multiple platforms (Android, IOS, Windows phone, and Mac) directly with C #, and you can share business logic and data access programs across different platforms. In addition to saving the time cost of the redesign, there is considerable help for versioning maintenance and code consistency.

2, native code to enhance the performance of the machine

When VS2015 compiles applications for iOS and Android platforms, it actually uses Xamarin to compile the C # program directly into the native machine code of ARM or Intel's CPU, so efficiency and performance are no different than the Android and iOS apps developed in native mode. Especially on Android, Xamarin is not using Android's Dalvik virtual machine, but instead uses the CLR to achieve, so development efficiency and performance are greatly improved, and some even more than the native application.

3, direct access to the core Platform API

In addition to the. NET API, developers can access the native core APIs of all platforms directly with C # without any restrictions.

4, lifecycle Management and connection to Azure

When you develop mobile applications in C #, you can easily manage source code repositories, builds, continuous integration deployments, unit tests, and UI tests. It can also run diagnostics in development and production environments, monitoring application performance and user behavior in real time through telemetry and analysis.

In addition to having full access to Visual Studio functionality, C # development mobile applications can be quickly integrated and configured with Microsoft's Cloud Architecture (Azure) mobile service and seamlessly add services such as data storage in the cloud, customer authentication, push notifications, or offline synchronization. And can be extended to millions of units at any time.

5, popular and mature

Mobile development is becoming more and more important for organizations around the world, with thousands of companies currently using Xamarin and Visual Studio to build High-quality, mission-critical applications.

With Visual Studio 2015 and Xamarin, organizations can use existing skills and technology investments to accelerate time-to-market and to provide mobile applications for all use cases.

Second, content planning

This module will be a comprehensive introduction to the various technologies used in C#+xamarin to develop the Android phone app under VS2015. The contents of each chapter will be updated periodically to facilitate the search. Some of this content is original, some refer to the official website, tutorials, or other people posted online code summed up, and some directly refer to the Java code, and then they use VS2015 and C # to achieve it again, so the chapters update also does not have a point of order, the feeling of where appropriate to update there.

All the source programs are introduced in the VS2015 Simplified Chinese Enterprise version +sp1 development environment Debugging pass.

This is just the opening, is not very exciting, is not caused by the desire to learn, then do not stop, and small weave together to explore the fun of Android.

First take a look at the Android development environment installation and configuration graphics and text tutorial , build the Android development environment.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.