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

Android Unit 2

Software development kits (SDKs) are sets of tools and libraries that help developers build applications for specific platforms. The Java SDK and Android SDK are two commonly used SDKs. The Java SDK contains tools for creating Java applications, while the Android SDK provides resources for building Android apps and includes an emulator, libraries, and documentation. Android Studio is the official IDE for Android development, which utilizes SDK components during the development process.

Uploaded by

prajwalchin123
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)
61 views4 pages

Android Unit 2

Software development kits (SDKs) are sets of tools and libraries that help developers build applications for specific platforms. The Java SDK and Android SDK are two commonly used SDKs. The Java SDK contains tools for creating Java applications, while the Android SDK provides resources for building Android apps and includes an emulator, libraries, and documentation. Android Studio is the official IDE for Android development, which utilizes SDK components during the development process.

Uploaded by

prajwalchin123
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

Android Chapter 2

A software development kit (SDK) is a set of software tools and programs


provided by hardware and software vendors that developers can use to build
applications for specific platforms. SDKs help developers easily integrate their
apps with a vendor's services.
1. Java SDK (Software Development Kit):
 Description: Java SDK, also known as JDK (Java Development Kit),
is a set of software tools that allow developers to create Java
applications. 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 for
Java development.
 Use Cases: Java SDK is widely used for developing various types of
applications, including web applications, mobile applications,
enterprise software, and more.
2. Android SDK (Software Development Kit):
 Description: Android SDK is a set of tools and resources provided
by Google for Android app development. It includes a
comprehensive set of development tools like debugger, libraries,
an emulator, sample code, and documentation to help developers
create Android applications.
 Use Cases: Android SDK is essential for building mobile
applications that run on the Android operating system. Developers
use it to create a wide range of applications, from games and
productivity tools to social media apps.

Software Development Kits (SDKs) are sets of tools and libraries that
developers use to create software applications for specific platforms or
frameworks. SDKs provide a set of pre-built functions, APIs,
documentation, and other resources to simplify and streamline the
development process.
Android Studio is the official IDE (Integrated Development Environment) for
Android app development and it is based on JetBrains’ IntelliJ IDEA software.
Installation Guide:
Step 1: Head over to https:///developers.android.com /studio/download to get
the Android Studio executable or zip file.
Step 2: Click on the Download Android Studio Button.
Click on the “I have read and agree with the above terms and conditions”
checkbox followed by the download button.
Click on the Save file button in the appeared prompt box and the file will start
downloading.
Step 3: After the downloading has finished, open the file from downloads and
run it. It will prompt the following dialog box.
Click on next. In the next prompt, it’ll ask for a path for installation. Choose a
path and hit next.
Step 4: It will start the installation, and once it is completed, it will be like the
image shown below.
Step 5: Click on “Finish”

Configuring Android Studio:


1. Start Android Studio:
 Once the installation is complete, launch Android Studio.
2. Set Up Android Studio:
 Follow the on-screen setup wizard to configure Android Studio.
This may involve downloading additional components, setting up a
default Android Virtual Device (AVD), and more.
3. SDK Components:
 Android Studio will prompt you to install additional SDK
components. Review the list and install the required components.
Introduction to Android Development Tools(ADT) plugin and Eclipse
Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed
to give you a powerful, integrated environment in which to build Android
applications. ADT extends the capabilities of Eclipse to let you quickly set up
new Android projects, create an application UI, add packages based on the
Android Framework API, debug your applications using the Android SDK tools,
and even export signed (or unsigned) .apk files 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

Android uses two different virtual machines for running applications: the Dalvik
Virtual Machine (DVM) and the Java Virtual Machine (JVM).
Dalvik Virtual Machine (DVM):
1. Purpose:
 DVM is specifically designed for Android and is optimized for
mobile devices with limited resources.
2. Bytecode:
 Android applications are compiled into a special bytecode format
known as Dalvik Executable (DEX). This bytecode is optimized for
efficiency in terms of storage and execution on mobile devices.
3. Memory Efficiency:
 DVM is designed to be memory-efficient, which is crucial for
mobile devices with varying levels of available RAM.
4. Just-In-Time Compilation (JIT):
 DVM uses a Just-In-Time compilation approach. It compiles the
DEX bytecode into native machine code at runtime, improving the
performance of the application.
5. Multitasking:
 DVM is designed to support multiple instances running in separate
processes, which is essential for Android's multitasking capabilities.
Java Virtual Machine (JVM):
1. General Purpose:
 JVM is a general-purpose virtual machine that can run Java
applications on any platform.
2. Bytecode:
 Java applications are compiled into bytecode, which is then
interpreted and executed by the JVM.
3. Memory Usage:
 JVM tends to be more resource-intensive compared to DVM. It is
designed to run on a wide range of computing devices, from
desktops to servers.
4. Just-In-Time Compilation (JIT):
 Like DVM, some JVM implementations use Just-In-Time
compilation to improve the performance of Java applications.
5. Platform Independence:
 One of the key features of JVM is platform independence. Java
applications can theoretically run on any device with a JVM,
regardless of the underlying hardware and operating system.

DVM stands for Dalvik Virtual Machine. It is a specialized virtual machine designed for the Android operating
system to execute applications written in the Java programming language. DVM is specifically optimized for
mobile devices with limited resources, such as smartphones and tablets.

You might also like