Thursday, March 11, 2010

Installation

In order to learn how to write Android apps, you need to use something to make it a little bit easier. Eclipse will be the best IDE for that. I personally prefer Netbeans but it does not have an official ADT Plugin like Eclipse does.
*This Works on Linux, Mac, and Windows

1. JDK
Java Development kit has all the required tools to write Java programs
Download then install it.

2. Eclipse
Eclipse is an IDE that lets you write Java programs easily. There are several packages you can chose. "Eclipse IDE for Java Developers" is more than enough. You can also choose "Eclipse IDE for Java EE Developers", "Eclipse for RCP/Plug-in Developers", "Eclipse Classic".
Download then install it.

3. Android SDK
Android Software Development Kit has many tools to make developing for android easier. This will make you able to use your phone and an emulator to test your programs.
Download then unpack and install it.

4. ADT Plugin for Eclipse
Android Development Tools will connect your Android SDK to your IDE. This will make Eclipse understands what your writing and help you in it and make you able to control everything in one place. The following table is taken from this page from Android official website.

Eclipse 3.5 (Galileo)
  1. Start Eclipse, then select Help > Install New Software.
  2. In the Available Software dialog, click Add....
  3. In the Add Site dialog that appears, enter a name for the remote site (for example, "Android Plugin") in the "Name" field.

    In the "Location" field, enter this URL:

    https://dl-ssl.google.com/android/eclipse/

    Note: If you have trouble acquiring the plugin, you can try using "http" in the URL, instead of "https" (https is preferred for security reasons).

    Click OK.

  4. Back in the Available Software view, you should now see "Developer Tools" added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
  5. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
  6. Restart Eclipse.
Configuring the ADT Plugin

Once you've successfully downnloaded ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:

  1. Select Window > Preferences... to open the Preferences Panel (Mac OS X: Eclipse > Preferences).
  2. Select Android from the left panel.
  3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
  4. Click Apply, then OK.
Done
The next step is how to use and manage the tools which will be in the same video as well.

No comments:

Post a Comment