Monday, December 02, 2013

Basic setup and installation

Android - Basic setup and installation

Let’s talk about Android development environment. Android development environment is made up of several parts that work together for you to build Android apps.
Let’s take a closer look at each one.

  1. Eclipse Integrated Development Environment
  2. Software Development Kit(SDK)
  3. Android development tool kit
  4. Android packages

1. Eclipse – IDE:

You must already know about Eclipse if you are a java developer. Here where you are gonna write code. Eclipse is a free and open source IDE managed by the Eclipse foundation. You can download Eclipse for free from the eclipse.org site.

If you already have installed eclipse in your system, please do check if it is compatible with ADT plugin. It’s better to reinstall latest version of eclipse to make it work perfectly.

Goto Eclipse website and download eclipse package as shown below:



2. Software Development Kit(SDK):

It has all the lower level tools to build, debug,  run and test your android applications. You need to download SDK from android website and make it ready for further steps involved in installation.

Download the Android SDK



Once you have downloaded the Android SDK. Now you need to set up your development environment.

The SDK you've downloaded is not the complete SDK environment. It includes only the core SDK tools, which you can use to download the rest of the SDK packages.


2.1 Getting started on Windows

Your download package is an executable file that starts an installer. The installer checks your machine for required Java SE Development Kit (JDK) and installs it if necessary. The installer then saves the Android SDK Tools into a default location (or you can specify the location).
Once the tools are installed, the installer offers to start the Android SDK Manager. Start it and continue with the installation guide by clicking the Next link on the right.


2.2 Getting started on Mac

Your download package is .zip. Unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-mac_x86.
Now continue with the installation guide by clicking the Next link on the right.


2.3 Getting started on Linux

Your download package is a .tgz. Unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-linux_x86.
Now continue with the installation guide by clicking the Next link on the right.

Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from the command line.


3. Android development tool kit

Android offers a plugin for the Eclipse IDE, called Android Development Tools (ADT). This plugin is designed to give you a powerful, integrated environment in which to develop Android apps. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.




Download the ADT Plugin

  1. Start Eclipse, then select Help > Install New Software.
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:   https://dl-ssl.google.com/android/eclipse/
  4. Click OK.
    • If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  7. Read and accept the license agreements, then click Finish.
    • If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
  8. When the installation completes, restart Eclipse.


4. Android packages:

You can develop and support multiple versions of Android from the same environment. All you need to do is have and install different versions of android packages.

Hurray...!!  You are done with the Android setup and installation.

No comments:

Post a Comment

Distributed Transactions

What is a distributed transaction?  Transactions that span over multiple physical systems or computers over the network, are simply termed D...