Installing Android SDK

Android proposes a custom plugin for the Eclipse IDE named Android Development Tools (ADT). It accelerates the capabilities of Eclipse and quickly provides you with the option to start up a new Android project, including a simulator. The ADT plugin for Eclipse is an integrated environment in which you can build, debug, and test Android-native applications. The Android SDK provides the tools and APIs that are required to develop an application on the Android platform by using Java programming language.

The initial step is to download the Android SDK, which is not present with IBM Worklight Studio and must be downloaded from http://developer.android.com/sdk/index.html.

Decompress the downloaded Android SDK file and copy the folder to the location where you store SDKs or other development-related files.

To install the Android Development Tools (ADT) plugin for Eclipse, use the following steps:

  1. Start Eclipse and navigate to Help | Install New Software. This opens the Available Software window.
  2. To add, download, and install the ADT plugin, click on Add to open the Add Repository dialog. Please enter the name ADT Plugin in the Name field and the plugin's location https://dl-ssl.google.com/android/eclipse/ in the Location field, as shown in the following screenshot:
    Installing Android SDK
  3. Then click on OK. The button will start loading and then it shows the ADT plugin features available to install from the Available Software window. Check the Developer Tools checkbox and click on Next.
    Installing Android SDK

    Android ADK plugin installation

  4. Complete the installation wizard and accept the default settings.
  5. You must restart Eclipse in order to make the changes work.
  6. After Eclipse is restarted, if it prompts a warning for an Android SDK, click on Open Preferences on the warning message dialog to open the preference window. Select Android from the left panel, and now on the right panel, click on the Browse SDK Location path and select the android SDK folder. Click on OK to resolve this warning.
  7. In the Android SDK Manager window (see the following screenshot), select Android SDK Platform-tools and Android Support Library, and select specific Android versions to test your application.
  8. Once you've finished selecting what you require, click on Install. This will start the installation process in a few steps. Once the installation completes, click on the close icon to close the Android SDK Manager window.
    Installing Android SDK

To configure an Android virtual device, use the following steps:

  1. Within Eclipse, navigate to Window | Android Virtual Device Manager from the menu.
  2. Clicking on New will open a dialog where you create a new Android Virtual Device (AVD). Give the AVD a name, such as GNexusAVD, as shown in following screenshot:
Installing Android SDK

The new Android Virtual Device is now ready for use to test and run the application. If additional devices are needed, repeat the preceding steps.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.83.62