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.