Java Reference
In-Depth Information
runthoseapps,youcanusethe
emulator
tooltoemulateadevice.Thistoolworksin
partnershipwithanAVD,whichisadescriptorthatdescribesvariouscharacteristicsof
the emulated device (e.g., the screen size).
Tip
EvenwhenyouhaveanactualAndroiddevice,youshouldalsotestyourapps
with the emulator to see how they appear under various screen sizes.
ThissectionfirstshowsyouhowtocreateanAVDtodescribeanemulateddevice.It
then shows you how to start the AVD, and takes you on a tour of its user interface.
Creating an AVD
Launch the Android SDK and AVD Manager dialog box via
SDK Manager
or
an-
droid
. You'll probably prefer to use
android
, which prevents the Refresh Sources
andChoosePackagestoInstalldialogboxesfromappearing.Asshownin
Figures12-5
ClicktheNewbutton.
Figure12-7
showsyoutheresultingCreatenewAndroidVir-
tual Device (AVD) dialog box.