Dispelled.ca » Computers
Next cd’ed back to the eclipse folder, and typed
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
- Start Eclipse, then select Help > Install New Software….
- In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location:
- Read and accept the license agreements, then click Finish.Note: If you get a security warning saying that the authenticity or validity of the software can’t be established, click OK.
- When the installation completes, restart Eclipse.
Configuring the ADT Plugin
After you’ve successfully downloaded the ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
- Select Window > Preferences… to open the Preferences panel (Mac OS X: Eclipse > Preferences).
- Select Android from the left panel.
You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
- For the SDK Location in the main panel, click Browse… and locate your downloaded SDK directory.
- Click Apply, then OK.
I went with the defaults, accepted all the agreements, didn’t send usage statistics to google, and just installed the 4.0 branch, not the 2.1 stuff. Maybe I’ll add that later, 97% of phones sounds like a good choice.
Install a Platform
To run the Hello World application, you need to install at least one Android platform in your SDK environment. If you have not already performed this step, you need to do it now.
To install a platform in Eclipse:
- In the Android SDK and AVD Manager, choose Available Packages in the left panel.
- In the right panel, expand the Android Repository list to display the components available for installation.
Create an AVD
In this tutorial, you will run your application in the Android Emulator. Before you can launch the emulator, you must create an Android Virtual Device (AVD). An AVD defines the system image and device settings used by the emulator.
To create an AVD:
- In Eclipse, select Window > Android SDK and AVD Manager.
- Select Virtual Devices in the left panel.
- Click New….The Create New AVD dialog appears.
- Type the name of the AVD, such as “my_avd”.
- Choose a target.The target is the platform (that is, the version of the Android SDK, such as 2.3.3) you want to run on the emulator. For this tutorial, choose the latest platform that you have installed and ignore the rest of the fields.
, , , ,