ptg7068951
Designing a Real App 367
- With Automatic selected as the Deployment Target Selection Mode,
select the SimpleAVD Android virtual device. - Change Deployment Target Selection Mode to Manual, click Apply,
and then click Close.
A new debug configuration called LeaderDebug is created.
To run the app, click the arrow next to the Debug button and choose
LeaderDebug (if it is present). If not, choose Debug Configurations, choose
LeaderDebug, and click Debug. The Android Device Chooser opens. Select
Launch a New Android Virtual Device, select SimpleAVD, and click OK.
The emulator loads over the next few minutes, then automatically runs
the app.
An emulator does not emulate everything an Android device can do. The
Leader app’s Dialer and Browser buttons should work properly, but you
might encounter problems with Maps.
The app also can be run onan Android phone, if you have one working
with the Android SDK and the phone has been set to debugging mode.
Click the arrow next to Debug and choose LeaderDebug, which definitely
should be present this time. Select Choose a Running Android Device,
select your phone in the list, and then click OK.
Figure 24.16 shows the app running on my phone. When the phone is
shifted from portrait mode to landscape mode, the app shifts accordingly.
(The figure also shows that I have 141 new voicemail messages. I probably
should check those.)
FIGURE 24.16
Ta ke m e t o y o u r l e a d e r!