Android takes a comprehensive, targeted and focused approach to building a mobile platform, and the usual JVM-based solutions are not enough for that. In Android, everything you need – the operating system, device drivers, kernel libraries, native Java interface, an optimized version of the Dalvik VM and the Java development environment – is in one package. The developer can be sure that when developing a new application all the main libraries will be on the mobile device.
This comprehensive approach differs from other solutions used in mobile programming, such as Java ME. Let’s take a brief look at Java ME, and compare the two approaches.
The standard version of the Java platform (Java SE) is suitable for personal computers and workstations. The enterprise version of the Java platform (Java ME) is designed for servers. The micro version of the Java platform (Java ME) is a shortened version designed for small devices. Java ME is available as two configuration options. The first option is called Connected Device Configuration (CDC). Java ME for CDC contains a simplified version of Java SE – with fewer packages, fewer classes in them, and even fewer methods and fields in those classes. For equipment and devices that have additional constraints, Java uses Connected Limited Device Configuration (CLDC).
The CLDC Java platform is based on a specialized and highly reduced version of the JVM called the K Virtual Machine (KVM), which is capable of running on devices with only 128Kbytes of memory. The CLDC under MIDP 2.0 (profile for a mobile device with information functions) can use additional application programming interfaces. Such interface contains a number of packages for javax. microedition. *. The basic packages include midlets (simple applications), a package for user interfaces called LCDUI, game and media packages.
The application programming interfaces for CDC configuration contain the java. awt API and the java.net API and some APIs for implementing security functions, in addition to those interfaces contained in CLDC. Additional profiles installed on top of the CDC give application developers access to the application programming interface javax. microedition. xlet (xlet is the application in the CDC configuration).
Let’s compare Java ME with Android:
Thus, the comparative analysis suggests that Android is the preferred platform for application development.