Java Reference
In-Depth Information
Tip To see the entire device screen at a platform screen resolution of 1024x768,
you'llneedtochangetheskinfromDefault(WVGA800)tosomethinglower,suchas
HVGA. Switching to HVGA also changes Abstracted LCD density to 160.
After keeping the screen defaults and/or making changes, click Create AVD. Then
clickOKontheresultingAndroidVirtualDevicesManagerdialogbox,whichsummar-
izes the AVD. The virtual devices pane now includes a test_AVD entry.
Starting the AVD
You must start the AVD, which can take a few minutes to get started, before you can
installandrunappsonit.Accomplishthistaskbyhighlightingthetest_AVDentry(on
the Virtual devices pane) and clicking the Start button.
ALaunchOptionsdialogboxappears,identifyingtheAVD'sskinandscreendensity.
Italsoprovidesuncheckedcheckboxesforscalingtheresolutionoftheemulator'sdis-
play to match the physical device's screen size, and for wiping user data.
Note Asyouupdateyourapps,you'llperiodicallypackageandinstallthemonthe
emulateddevice,whichpreservestheappsandtheirstatedataacrossAVDrestartsina
user-datadiskpartition.Toensurethatanapprunsproperlyasyouupdateit,youmight
needtodeletetheAVD'suser-datapartition,whichisaccomplishedbycheckingWipe
user data.
Click the Launch button on the Launch Options dialog box to launch the emulator
with the AVD. A Starting Android Emulator dialog box appears, and is followed by
command windows (on Windows XP) and the AVD's main window.
ThemainwindowisdividedintoaleftpanethatdisplaystheAndroidlogoonablack
backgroundfollowedbythehomescreen,andarightpanethatdisplaysphonecontrols
and a keyboard. Figure 12-8 shows these panes for the test_AVD device.
Search WWH ::




Custom Search