Unit 2
Unit 2
Unit II
Installation and Configuration of Android
OPERATING SYSTEM
A mobile operating system is an operating system for mobile phones, tablets, smart-
watches, 2-in-1 PCs or other mobile devices. While computers such as typical laptops are
'mobile', the operating systems usually used on them are not considered mobile ones, as they
were originally designed for desktop computers that historically did not have or need specific
mobile features. The Android operating system is a mobile operating system that was
developed by Google to be primarily used for touchscreen devices, cell phones, and tablets.
The Android Operating System is a Linux-based OS developed by the Open Handset
Alliance (OHA).
JAVA JDK
The Java Development Kit (JDK) is a software development environment used for
developing Java applications and applets. It includes the Java Runtime Environment (JRE),
an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator
(javadoc) and other tools needed in Java development.
The Java Development Kit (JDK) is one of three core technology packages used in
Java programming, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime
Environment). It's important to differentiate between these three technologies, as well as
understanding how they're connected:
ANDROID SDK
The Android SDK (software development kit) is a set of development tools used to
develop applications for Android platform. The Android SDK includes the following:
Required libraries
Debugger
An emulator
Relevant documentation for the Android application program interfaces (APIs)
Sample source code
Tutorials for the Android OS
ADT extends the capabilities of Eclipse to let you quickly set up new Android
projects, create an application UI, add components based on the Android Framework API,
debug your applications using the Android SDK tools, and even export signed (or unsigned)
APKs in order to distribute your application.
Developing in Eclipse with ADT is highly recommended and is the fastest way to get
started. With the guided project setup it provides, as well as tools integration, custom XML
editors, and debug output pane, ADT gives you an incredible boost in developing Android
applications.
EMULATORS
The Android Emulator simulates Android devices on your computer so that you can
test your application on a variety of devices and Android API levels without needing to have
each physical device.
The emulator provides almost all of the capabilities of a real Android device. You can
simulate incoming phone calls and text messages, specify the location of the device, simulate
different network speeds, simulate rotation and other hardware sensors, access the Google
Play Store, and much more.
Testing your app on the emulator is in some ways faster and easier than doing so on a
physical device. For example, you can transfer data faster to the emulator than to a device
connected over USB. The emulator comes with predefined configurations for various
Android phone, tablet, Wear OS, and Android TV devices.
Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile
devices. It optimizes the virtual machine for memory, battery life and performance. Dalvik is
a name of a town in Iceland. The Dalvik VM was written by Dan Bornstein.The Dex
compiler converts the class files into the .dex file that run on the Dalvik VM. Multiple class
files are converted into one dex file.
Let's see the compiling and packaging process from the source file:
The javac tool compiles the java source file into the class file.
The dx tool takes all the class files of your application and generates a single .dex file. It is a
platform-specific tool.The Android Assets Packaging Tool (aapt) handles the packaging
process.