Mad Unit 1 N 2
Mad Unit 1 N 2
Department of AIML
Prerequisites
• Object Oriented Programming using Java
Fig.: The compiling and packaging process from the source file
Dalvik Virtual Machine (DVM)
• 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.
Difference between JVM and DVM
DVM (Dalvik Virtual Machine) JVM (Java Virtual Machine)
It is Register based which is designed to run on low
It is Stack based.
memory.
DVM uses its own byte code and runs “.Dex” file.
JVM uses java byte code and runs “.class” file
From Android 2.2 SDK Dalvik has got a Just in
having JIT (Just In Time).
Time compiler
DVM supports Android operating system only. JVM supports multiple operating systems.
For DVM very few Re-tools are available. For JVM many Re-tools are available.
There is constant pool for every application. It has constant pool for every class.
To complete the installation, leave Start Android Studio box checked and click Finish.
Running Android Studio
The first time Android Studio runs, it presents a Complete Installation dialog box that offers the option of
importing settings from a previous installation.
choose not to import settings (the default selection) and click OK, the following splash screen will appear:
Running Android Studio
You will observe the following Finding Available SDK Components message box.
Running Android Studio
Android Studio will present the following Android Studio Setup Wizard dialog box:
Running Android Studio
Click Next, and the wizard will invite you to select an installation type. Keep the default standard setting.
Running Android Studio
Then you can choose a user interface theme.
Running Android Studio
You can choose whichever you want and click Next. Android Studio will next provide the opportunity to
verify settings.
Running Android Studio
click Finish and Android Studio will begin the process of downloading SDK components.
Running Android Studio
It can take several minutes for this part of the setup to finish.
Running Android Studio
Finally, click Finish to complete the wizard. The Welcome to Android Studio dialog box appear.
This dialog box is used to start up a new Android Studio project, work with an existing project, and more. It can be