CH 2
CH 2
Java JDK
As android programs are developed in Java programming language we have to install JDK
(Java Development Kit) which includes JRE. The Java Runtime Environment (JRE) is a set of
software tools for development of Java applications. It combines the Java Virtual Machine (JVM),
platform core classes and supporting libraries.
Android SDK
The Android SDK (software development kit) is a set of development tools used to develop
applications for Android platform. the SDK can be used to write Android programs in the
command prompt, the most common method is by using an integrated development environment
(IDE).
Android Development Tools (ADT)
It is a plugin for Eclipse IDE which provides suitable environment to develop an android
application where creation, compilation and debugging are possible.
ADT is used to set up new Android projects, create an application UI, insert packages based
on Android Framework API, debug your application using Android SDK tools, and export
signed .apk files in order to distribute in the application
ADT provides custom XML editors, and debug output pane from which we get
unbelievable enhance during development of Android applications.
Ch2. Installation and Configuration of Android
Fig:Android ADT
Android Virtual Devices(AVD’s)
An AVD is an emulator configuration that enables to model an actual device by calling
hardware and software options to be emulated by the Android emulator.
An AVD is used for testing the android apps.
An AVD is an emulator occurrence that enables to from a real device.
Each AVD consists of hardware sketch, connection(mapping) to system image, and
emulated storage such as secured digital (SD) card.
The Android uses particular virtual machine i.e. the Dalvik machine to run Java based
applications
Dalvik uses its own byte code format i.e. Dalvik byte code which is different from java
byte code.
Dalvik VM takes the generated Java class files and combines them into one or more Dalvik
executable (.dex) files.
Android uses the Dalvik VM with just during time compilation to run Dalvik bytecode,
which is frequently translated from Java bytecode.
Dalvik uses different kind of assembly code generation, in which it uses registers as
primary storage rather than stack
Android programs are compiled into .dex files, which are in turn zipped into a single .apk
file on the device.
Ch2. Installation and Configuration of Android