What are the differences between Android apps and Windows Store applications in programming languages and programming?

Source: Internet
Author: User
Keywords Programming way Store application
Tags android android application android apps android system api application application development application framework

The following table compares the differences in the programming framework model for Android and Windows 8 application development:

Android Framework

function

Windows 8 Store Application framework

Android Application Framework

Provide APIs available to applications

Windows Runtime (WinRT) mappings

Based on Win 8 store applications. NET Framework

Win32 API to support win 8 store applications

Android System Library

Provides reusable system-level features and resources

Windows Runtime Library

DirectX (2d,3d) engine

Android Runtime (Dalvik)

Provide language execution engine

Common language Runtime (CLR) (available only for managed code)

Linux kernel

Operating

Windows NT Kernel

The Android system runs on the Linux kernel, and Windows 8 runs on the Windows NT core. They are two completely different cores, but are completely transparent to the developer.

The Android system integrates the Dalvik Java virtual machine to execute Java bytecode. In Windows 8, the corresponding virtual machine that is provided to managed code is the universal language Runtime (CLR), which itself is an just-in-time compilation (Just-in-time) engine. Unlike Dalvik virtual machines, managed code needs to be compiled into intermediate language code (IL), which is then compiled into machine code by the common language runtime at runtime. The whole principle can provide better performance than Java virtual machines.

The Android system library is a set of local code libraries that provide reusable system-level functionality and resources. On Windows 8 platforms, the Windows Runtime Library plays the same role. He is also a local code base and reusable. If you want to develop game applications, you will need to use the DirectX engine to replace the OpenGL ES Library.

Android also provides a complete set of API frameworks for Java applications. However, in Windows 8 application store applications, these APIs are provided by the Windows Runtime Library. We only need to use Windows Runtime to bring this API and functionality into the application of different language development. If you are using managed code to develop applications, you can use one. NET Framework. NET-oriented version of the WIN8 application store.

The following table compares the programming language differences between Android and Windows 8 application development:

Android System applications

Windows 8 Application Store Application

Java

C#/vb.net

C + +

C++/cx

Html5+javascript

These two platforms support different development languages. In Windows 8, we support a variety of development languages, although the closest alternative to Java is C #. The syntax structure of the C # language is similar to that of Java, and we can easily convert Java code into C # code.

In the Win8 platform, we can directly use C + + to design our user interface and business logic. In fact, we prefer to use it to design custom WINRT components rather than design applications.

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.