Initiate some stuff:

Before start develop any android app we need IDE (Integrated Development Environment) like Eclipse , Android Studio etc. Then we need android SDK to start writing your own Android Applications.

Version of SDK, IDE are available for Windows, MacOs and Linux, So you can explore Android from the comfort of whatever OS You favor. The SDK tools and emulator work on all three OS environments and because Android applications are run on a virtual machine, there’s no advantage to developing form any particular operating system.

What You Need to Begin:

Because Android Applications run within the Dalvik virtual machine, you can write them on any platform that supports the developer tools. This currently includes the followings:

  • Microsoft Windows XP or later
  • MAC OS X 10.4.8 or later
  • Linux

To get started, you will need to download and install following kit:

  • Java Development kit 6 +
  • Android SDK

Downloading and Installing JDK :

The following steps work for Windows machines, but the steps are similar for Macs or Linux machines. Follow these steps to install the JDK:
1. Go to www.oracle.com/technetwork/java/javase/downloads/index.html. The Java SE downloads page appears.

2. Click the Download button for the Java Platform (JDK). A new Java SE Downloads page appears, asking you to specify which platform (Windows, Linux, or Mac) you’re using for your development work.

The web page shown in Figure may look different in the future. To ensure that you’re visiting the correct page, visit the Android SDK System Requirements page in the online Android documentation for a direct link to the Java SDK download page. View the requirements page at http://developer.android.com/sdk/requirements.html.

jdk3. Click the Download link for the particular operating system you’re using. On Windows, choose the 32-bit install. If you’re on a 64-bit machine, you can install both the 32-bit (x86) and 64-bit (x64) JDKs if you like, but you must install the 32-bit to develop with Android. Windows may open a message box with a security warning.

4. In the Save As dialog box, select the location where you want to save the file, and click Save.

5. When the download is complete, double-click the file to install the JDK. A dialog box asks whether you want to allow the program to make changes to your computer.

6. Click the Yes button. If you click the No button, the installation stops.

7. When you’re prompted to do so, read and accept the license agreement. That’s all there is to it.

You have the JDK installed and are ready to move to the next phase.

Downloading and Installing the SDK :

The Android SDK is completely open. There’s no cost to download or use the API. You can download the latest version of SDK for your development platform from Android official site http://developer.android.com/sdk/index.html .

Android SDK installation

To download the Android SDK, follow these steps:
1. Go to http://developer.android.com/sdk/index.html.
2. Choose the latest version of the SDK starter package for your platform to download the SDK. You’ve just downloaded the Android SDK.
3. Open SDK Manager.

  • Windows: Run the SDK Installer and install the SDK to the default location. When finished, check the Start SDK Manager check box and click Finish. If you’re prompted to accept the authenticity of the file, click Yes. The Android SDK Manager dialog box opens.
  • Mac: Double-click the SDK file to unzip it. Move the resulting android-sdk-mac_x86 directory to a safe place, such as your Applications directory. Open the Terminal and enter cd to go to the android-sdk-mac_x86 directory, and then run tools/ android. You may be prompted to install

4. Select the SDK Platform Android 4.4 or latest check box.

Every time a new version of the Android operating system is released,
Google also releases an SDK that contains access to the added functionality in that version. If you want to include Bluetooth functionality in
your app, for example, make sure that you have Android SDK version 2.0 or later because this functionality isn’t available in earlier versions.

sdk

5. Click Install packages. The Choose Packages to Install dialog box opens.
6. Select the Accept radio button to accept the license, and then click Install, as shown in Figure .
The Installing Archives dialog box opens, displaying a progress bar.

sdk

7. When the archives installation is complete, click the Close button.

Getting the Tool:

After you have the SDK, you need an integrated development environment (IDE) to use it. It’s time to download Eclipse!

Downloading Eclipse : 

To download Eclipse, navigate to the Eclipse downloads page at www.eclipse.org/downloads. Select Eclipse IDE for Java Developers (Eclipse 3.7.2 (Indigo) or greater  ) and download the zip file.

To install Eclipse, extract the contents of the Eclipse .zip file to the location of your choice, such as C:\Program Files\Eclipse on Windows or in your Applications folder on a Mac.
On Windows, once you unzip Eclipse, pin a shortcut to your Start menu instead so that Eclipse is easy to find when you need it.

To start Eclipse, follow these steps:

1. To run Eclipse, double-click the Eclipse icon. If you’re running a recent version of Windows, the first time you run Eclipse, a Security Warning dialog box may appear. It tells you that the publisher hasn’t been verified and asks whether you still want to run the software. Clear the Always Ask Before Opening This File check box, and click the Run button.

2. When Eclipse starts, the first thing you see is the Workspace Launcher dialog box, as shown in Figure. You can modify your workspace
there, if you want, but you can aslo stick with the default:
           c:\users\<username>\workspace
on Windows, or
            \Users\<username>\workspace
on a Mac

workspace

Leave the Use This As the Default and Do Not Ask Again check box deselected, and click the OK button.

3. Close welcome screen in eclipse.

Configuring Eclipse :

The Android Development Tools (ADT) plug-in adds functionality to Eclipse to do a lot of the work for you.

To set up Eclipse with the ADT, follow these steps:

1. Start Eclipse, if it’s not already running.
2. Choose Help➪Install New Software. The Install window opens. You use this window to install new plug-ins in Eclipse.

eclipse add new
3. Click the Add button to add a new site. A site is a web address where software is hosted on the Internet. Adding a site to Eclipse makes it easier for you to update the software when a new version is released.
The Add Repository window opens, as shown in Figure.

android adt

4. This name can be anything you choose, but an easy one to remember is Android ADT.

5. Type https://dl-ssl.google.com/android/eclipse/ in the Location field.

6. Click OK.

Android ADT is selected in the Work With drop-down menu, and the available options are displayed in the Name and Version window of the
Install Details dialog box, as shown in Figure.

Install ADT

7. Select the check box next to Developer Tools, and click the Next button. The Install Details dialog box should list both the Android DDMS (see “Getting physical with a real Android device,” ) and the ADT.

8. Click the Next button to review the software licenses.

9. Click the Finish button.

10. When you’re prompted to do so, click the Restart Now button to restart Eclipse.

The ADT plug-in is installed.

Setting the location of the SDK :

You’re almost done, and you have to do this workonly once. Follow these steps:
1. Choose Window➪Preferences.
The Preferences dialog box opens, as shown in Figure

android prefernces
2. Select Android in the left pane.

3. Set the SDK Location to the folder to which you saved the AndroidSDK.
If you saved Android SDK to c:\android on your computer, the location
is c:\android\android-sdk-windows.

4. Click OK.

Eclipse is configured, and you’re ready to start developing Android apps.

Leave a Reply