An Android Virtual Device (AVD) is a device configuration
that is run with the Android emulator. It works with the emulator to
provide a virtual device-specific environment in which to install and
run Android apps. Lesson 4 shows you how to create an AVD by introducing
you to the Android SDK’s AVD Manager tool.
Using AVD Manager to Create an AVD
The
Android SDK provides the AVD Manager tool for creating and otherwise
managing AVDs. You can run this tool directly or run SDK Manager and
select Manage AVDs from the Tools menu. In either case, you are greeted with the Android Virtual Device Manager window
Android Virtual Device Manager lets you create, update, delete, repair, and start AVDs. Click the New button to create a new AVD. This application responds by presenting the Create new Android Virtual Device (AVD) dialog box
AVD has a name, targets a specific Android platform, and has other features. Enter MyAVD as the name, select Android 2.3.3 – API Level 10 as the target platform, and choose a size of 100 (megabytes) for the Secure Digital (SD) card. Apps store their data in hierarchical structures on this card.
Note: Check the Enabled checkbox in the Snapshot
section if you want to persist the emulator’s state between emulator
executions. Doing so lets you quickly start the emulator after the first
startup.
reveals that you can choose the virtual device’s skin (appearance). When you select Android 2.3.3 – API Level 10 as the target platform, the skin defaults to the built-in WVGA800 value. Furthermore, it presents the following hardware properties:
Click the Create AVD button after making these changes. You should see the confirmation dialog box that appears
- Abstracted LCD Density, set to 240 dots per inch
- Max VM application heap size, set to 24 megabytes
- Device RAM size, set to 256 megabytes
Click the Create AVD button after making these changes. You should see the confirmation dialog box that appears
Click the OK button to dismiss this dialog box and return to Android Virtual Device Manager’s main window. You should see the new AVD listed as shown in Figure
If you ever want to change this AVD’s characteristics, highlight its entry in the list and click the Edit button. You can also obtain a description of the AVD by clicking Details, and you can delete it by clicking Delete.
No comments:
Post a Comment