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

(singke) #1
ptg7068951

Installing the Android Plug-in for Eclipse 393


  1. Make sure the SDK Location field contains the folder where the
    Android SDK was installed. If it doesn’t, click Browse to navigate to
    that folder and choose it with a file folder dialog.

  2. After the SDK has been located, you see a table with a list of SDK
    targets, as depicted in Figure D.2.


FIGURE D.2
Setting Android preferences in
Eclipse.

These targets are the versions of Android you can create apps for with the
SDK. Android apps must designate the earliest version of Android they are
created to work on.


Click OK to close the dialog and save your preferences.


With the Android plug-in installed and the SDK located properly, you
should find new menu commands in Eclipse. One of them is Window,
Android SDK, and AVD Manager.


If this command is absent, close Eclipse and restart it.


You can use the manager to keep the SDK up to date. Choose Window,
Android SDK, and AVD Manager. The manager opens.


Click Installed Packages in the left pane to see which SDK components are
installed on your computer.

Free download pdf