Saturday, 21 July 2012


Introduction of Android


Today Android apps has a seperate market. This is provided by google and based on linux and java programming. This tool is used for mobile applications and famous in form of Android SDK (Software Developement Toolkit). Android SDK provides all basic utilities for developing, debugging, Testing android applications with android emulator. All android applications are distributed using google play service.

http://play.google.com

This service of google provide single way to distribute android application to android users in form of paid or free.

Android development is done by Eclipse IDE for java and use Dalvik Virtual Machine to run Java based applications. Dalvik uses an own bytecode format which is different from Java bytecode.
What is Android .apk
Android applications are primarily written in the Java programming language. The Java source files are converted to Java class files by the Java compiler.

The Android SDK contains a tool called dx which converts Java class files into a .dex (Dalvik Executable) file. All class files of one application are placed in one compressed .dex file. During this conversion process redundant information in the class files are optimized in the .dex file. For example if the same String is found in different class files, the .dex file contains only once reference of this String.

These dex files are therefore much smaller in size than the corresponding class files.

The .dex file and the resources of an Android project, e.g. the images and XML files, are packed into an .apk (Android Package) file. The program aapt (Android Asset Packaging Tool) performs this packaging.

The resulting .apk file contains all necessary data to run the Android application and can be deployed to an Android device via the adb tool.

No comments:

Post a Comment