Android Virtual Devices

Android Virtual Devices are used to simulate the software builds and hardware specifications available on different devices. This lets you test your application on a variety of hardware platforms without needing to buy a variety of phones.

The Android SDK doesn't include any pre-built virtual devices, so you will need to create at least one device before you can run your applications within an emulator.

Each virtual device is configured with a name, a target build of Android (based on the SDK version it supports), an SD Card capacity, and screen resolution, as shown in the "Create new AVD'' dialog in Figure 2-17.

Each virtual device also supports a number of specific hardware settings and restrictions that can be added in the form of NVPs in the hardware table. These additional settings include:

> Maximum virtual machine heap size

> Screen pixel density

# Create new AVD ' ' ' '

Target: Android 2.0 - API Level 5

SDCard:

Skin:

Hardware:

Property Value ¡Hew_l Abstracted LCD density 240

Delete

P.lax VM application heap size 24

□ Force create CreateAVD | | Cancel

FIGURE 2-17

> SD Card support

> The existence of DPad, touchscreen, keyboard, and trackball hardware

> Accelerometer and GPS support

> Available device memory

> Camera hardware (and resolution)

> Support for audio recording

Different hardware settings and screen resolutions will present alternative user-interface skins to represent the different hardware configurations. This simulates a variety of mobile device types. To complete the illusion, you can create a custom skin for each virtual device to make it look like the device it is emulating.

Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide


Post a comment