0% found this document useful (0 votes)
7 views4 pages

CH 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views4 pages

CH 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Ch2.

Installation and Configuration of Android


Chapter 2- Installation & Configuration of Android
Operating System
An operating system is the primary software that manages all the hardware and other software on
a computer. The operating system, also known as an “OS,” interfaces with the computer’s hardware and
provides services that applications can use.
OS requirements for Android: To develop an Android program, the necessary supporting operating
systems used in computer can be as follows:

1. Windows XP(32 bit), Vista(32 or 64 bit), Windows 7(32 or 64 bit)


2. Mac OS X(Intel) 10.5.8 (x86 only)
3. Linux (i386 :tested in Lucid Lynx, Ubuntu Linux)

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.

Fig: Android AVD


 We can generate as many AVD’s as we want to analysis the applications with some
different configurations.
 This testing is essential to confirm the performance of the application when it is run on
different devices with changing capabilities.
Ch2. Installation and Configuration of Android
Emulators
 The emulator enables us trial product, to develop and test Android apps without using
physical device.
 The Android emulator mimics all of the hardware and software features of mobile device
except it can’t place actual phone calls.
 It provides selection of navigation, control keys which u can press using your mouse or
keyboard to generate events for application.
 The android emulator runs in a full Android system stack, down to the kernel level,
including a set of preinstalled applications that you can access from your applications.
 The android emulator offers dynamic binary translation of device machine code to the OS
and processor architecture of your development machine.

The android emulator supports hardware features like:


1. An ARMv5 CPU
2. 16 bit LCD display
3. One or more keyboards
4. Sound chip
5. Flash memory partitions
6. GSM modem
7. Camera
8. Sensors like accelerometer etc.

Dalvik Virtual Machine

 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

Fig: Android Dalvik Virtual Machine

Difference between JVM and DVM

You might also like