Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Date of Performance: 23/02/22

Date of submission: 03/03/22


Name: Isha Saswade
Div and Roll No: TYCO A 63
Practical No. 2: Install and configure java development kit (JDK),
Android studio and android SDK.
• Practical related Questions:
1. List all the steps to install android operating system.
Ans:
Step 1: Head over to https://developer.android.com/studio/install 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.
Click on next.

Step 5: Once “Finish” is clicked, it will ask whether the previous settings need
to be imported [if the android studio had been installed earlier], or not. It is
better to choose the ‘Don’t import Settings option’.
Click the OK button.
Step 6: This will start the Android Studio.

Meanwhile, it will be finding the available SDK components.

Step 7: After it has found the SDK components, it will redirect to the
Welcome dialog box.
Click on Next.

Choose Standard and click on Next. Now choose the theme, whether
the Light theme or the Dark one. The light one is called the IntelliJ theme
whereas the dark theme is called Darcula. Choose as required.
Click on the Next button.
Step 8: Now it is time to download the SDK components.

Click on Finish. Components begin to download let it complete.


The Android Studio has been successfully configured. Now it’s time to launch
and build apps. Click on the Finish button to launch it.
Step 9: Click on Start a new Android Studio project to build a new app.

To run your first android app in Android Studio you may refer to Running
your first Android app.
2. List various IDEs that can be used to execute android operating system.
Ans: Android IDEs for Developers:
i. AIDE
ii. Droid Script
iii. Cpp Droid
iv. Android Web Developer (AWD)
v. Python Suite
vi. Java Suite
vii. Eclipse
viii. Arduino
ix. Visual Studio
x. Unreal Engine
xi. Android Studio
xii. Corona
xiii. Phone Gap

• Exercise:
1. Differentiate between JVM and DVM.
Ans:

DVM (Dalvik Virtual Machine) JVM (Java Virtual Machine)


It is Register based which is designed to
It is Stack based.
run on low memory.
DVM uses its own byte code and runs the
JVM uses java byte code and runs “.class”
“.Dex” file. From Android 2.2 SDK
file having JIT (Just In Time).
Dalvik has got a Just in Time compiler
DVM has been designed so that a device
can run multiple instances of the VM A single instance of JVM is shared with
efficiently. Applications are given their multiple applications.
own instance.
DVM supports the Android operating
JVM supports multiple operating systems.
system only.
For DVM very few Re-tools are available For JVM many Re-tools are available.
There is a constant pool for every
It has a constant pool for every class.
application.
Here the executable is APK. Here the executable is JAR.
2. What is IDE? Why Java development toolkit is essential to install an
android operating system?
Ans:
i. IDE: An integrated development environment (IDE) is a software
application that provides comprehensive facilities to computer
programmers for software development.
ii. If your system has an up-to-date JDK installed, you won't need to install
it again. The JDK provides tools, such as the Java compiler, used by IDEs
and SDKs for developing Java programs. The JDK also contains a Java
Runtime Environment (JRE), which enables Java programs, such as
Eclipse, to run on your system.

iii. If you are using a Macintosh running a version of Mac OS X supported


by the Android SDK, the JDK is already installed.
iv. If you are a Linux or Windows user, or you need to install the JDK from
Oracle’s site for some other reason, you can find the JDK
at https://www.oracle.com/java/technologies/downloads/
v. The Windows installer you download is an executable file. Run the
executable installer file to install the JDK.
vi. Linux users will need to extract the JDK folder they downloaded into
their home directory, and perform the following steps to install the JDK.
These steps assume you want to use the current Oracle JDK as your
default Java runtime.

You might also like