CHAPTER 1 Introducing Android Studio Installation
CHAPTER 1 Introducing Android Studio Installation
Installation of Emulators
Emulators are software that mimics the behaviour of real devices. When we develop
an app, we obviously won‟t have all the possible devices (Android phones, tablets,
etc.) available at hand. Because of this, we run the apps on emulators for testing on
various devices. Emulators are also called as “Android Virtual Devices (AVDs)”
in Android Studio. When Android Studio is first installed, there is no default AVD.
We need to create one before testing our apps. For this, select Tools Android
AVD Manager as shown in Figure 1
When AVD Manager appears, there won‟t be any AVDs created or installed. Please
click on the + Create a Virtual Device button as shown below:
Figure 14. Switching among different ways of viewing files and folders
manifests folder: This folder has the AndroidManifest.xml file inside. This file
contains the configuration parameters of the project such as permissions, services
and additional libraries.
java folder: The source code files written in Java programming language reside in
this folder. You can see that the java file of the activity named “MainActivity.java”
is automatically created in this folder.
res folder: The resource files are contained in this folder. Resources basically mean
all the needed files except the source code. For example, if we want to include an
mp3 file in our project, we place this file inside the “res” folder.
android:debuggable="true"
Code 3.1
inside the <application> element as shown in Figure 29.
Figure 29. Adding the “debuggable” property to our app
We are now ready to test our “Hello World” app on the real device. When we hit
the “Run” button in Android Studio, the following device selection window will
appear: