0% found this document useful (0 votes)
79 views6 pages

Android Emulator

The document discusses the Android emulator, which is an Android Virtual Device that simulates a real Android device. It allows testing and running Android apps on a PC. The emulator provides functionality like sensors, location services, and access to the Google Play store. It comes preconfigured for different device types. The emulator is installed with Android Studio and additional components can be installed via the SDK manager. Apps can be run on the emulator by creating an AVD, selecting it as the target device, and clicking run.

Uploaded by

dharshujaym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views6 pages

Android Emulator

The document discusses the Android emulator, which is an Android Virtual Device that simulates a real Android device. It allows testing and running Android apps on a PC. The emulator provides functionality like sensors, location services, and access to the Google Play store. It comes preconfigured for different device types. The emulator is installed with Android Studio and additional components can be installed via the SDK manager. Apps can be run on the emulator by creating an AVD, selecting it as the target device, and clicking run.

Uploaded by

dharshujaym
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Mobile Application Development

UNIT II
Android Emulator

● The Android emulator is an Android Virtual Device


(AVD), which represents a specific Android device.
● can use the Android emulator as a target device to
execute and test Android application on the PC.
● The Android emulator provides almost all the
functionality of a real device.
● can get the incoming phone calls and text messages.
● It also gives the location of the device and simulates
different network speeds.
● Android emulator simulates rotation and other hardware
sensors.
● It accesses the Google Play store, and much more
● Testing Android applications on emulator are sometimes
faster and easier than doing on a real device.
● For example, can transfer data faster to the emulator than
to a real device connected through USB.
● The Android emulator comes with predefined
configurations for several Android phones, Wear OS,
tablet, Android TV devices.
Install the emulator

● The Android emulator is installed while installing the


Android Studio.
● However some components of emulator may or may not
be installed while installing Android Studio.
● To install the emulator component, select the Android
Emulator component in the SDK Tools tab of the SDK
Manager.

Run an Android app on the Emulator

● can run an Android app form the Android Studio project,


or can run an app which is installed on the Android
Emulator as run any app on a device.
● To start the Android Emulator and run an application in
project:

1. In Android Studio, need to create an Android Virtual


Device (AVD) that the emulator can use to install and
run the app.

To create a new AVD:-

1.1 Open the AVD Manager by clicking Tools > AVD


Manager.
1.2 Click on Create Virtual Device, at the bottom of the
AVD Manager dialog. Then Select Hardware page
appears.

1.3 Select a hardware profile and then click Next. The


System Image page appears.
1.4 Select the system image for the particular API level
and click Next. This leads to open a Verify
Configuration page.
1.5 Change AVD properties if needed, and then click
Finish.

2. In the toolbar, choose the AVD, which users want to


run our app from the target device from the drop-down
menu.
3. Click Run.

Launch the Emulator without first running an app

To start the emulator:

1. Open the AVD Manager.

2. Double-click an AVD, or click Run


● While the emulator is running, can run the Android
Studio project and select the emulator as the target
device.
● can also drag an APKs file to install on an emulator, and
then run them.

You might also like