Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1
ptg7068951

394 APPENDIX D:Setting Up an Android Development Environment


Click Available Packages to see what else is available that hasn’t been
installed yet.
Check a box for one of the packages. Eclipse checks the contents of that
package and presents check boxes for the specific things you need to
install, as shown in Figure D.3.

FIGURE D.3
Installing new packages for the
Android SDK.


When you have checked the boxes for packages you want and have
unchecked the ones you don’t, click Install Selected.
You should periodically check for new updates. Android is being devel-
oped at a furious pace as new phones and other devices hit the market and
the SDK must support them.

Setting Up Your Phone
The Android SDK includes anemulator that acts like an Android phone
and can run the apps you create. This comes in handy as you’re writing an
app because you can get it working in a test environment, but at some
point you need to see how it works on an actual Android phone (or other
device).
You can deploy appsyou write with the SDK on an Android device over
your computer’s USB connection. You can use the same cord you use to
transfer files to and from the device.
Before connecting the cord, you must enable USB debugging on the phone
by following these steps:
Free download pdf