Skip to content
Aasim's Web Corner
Aasim's Web Corner

Ink is better than the best memory.

  • Odysseys & Artistry
    • Saunterer Soul
    • My Poetry
    • My Sketch Work
  • Project Management
    • Agile & Frameworks
    • PMP Certification
  • Digital Diary
    • History
    • Islam
    • Life Around Us
    • My Bookshelf
  • My Tutorials
    • Amazon Kindle
    • Android
    • Aspect Oriented Programming
    • BlackBerry
    • Code Repositories
    • iOS
    • Java
    • JavaScript
    • Linux
    • Random Tips
Connect with me
Aasim's Web Corner

Ink is better than the best memory.

Android App Development - Part 1 - AasimNaseem.com

Android Application Development Tutorial :: Part 2 (Setting up your system)

Aasim Naseem, July 21, 2010 | Read Count: 15,487April 9, 2025
Category: My Tutorials > Android

Hello All …
hope everything is good at your end ..
Here is a 2nd part of my tutorial on Android Application Development. The first part was just an introduction to this series. Today you will learn how to setup your system to start android application development.

Android applications, like most mobile phone applications, are developed in a host-target development environment. In other words, youdevelop your application on a host computer (where resources are abundant), and download it to a target mobile phone for testing and ultimate use.

To write your own Android mobile phone applications, you’ll first need to collect the required tools and set up an appropriate development environment on your PC or Mac. Linux, Windows, and Macintosh are all supported development environments, and i’ll tell you how to install the latest set of tools on each. Then i’ll show you any configuration you need to do after the tools are installed (setting PATH environment variables and the like), again for each of the three operating systems. And finally i’ll write a short little “Hello, Android” application that demonstrates what needs to be done to get a generic application running. Probably it will be in next part.

The Android SDK supports several different development environments. For this tutorial i will focus on using Eclipse, because it is the best integrated with the SDK, and, hey, it’s free. No matter which operating system you are using, you will need essentially the same set of tools:

  • The Eclipse Integrated Development Environment
  • Sun’s Java Development Kit (JDK)
  • The Android Software Developer’s Kit (SDK)
  • A special Eclipse plug in: the Android Developer Tool (ADT)

Since you’re probably going to develop on only one of these operating systems, skip to the appropriate section that pertains to your selected operating system.

Creating an Android Development Environment
The Android Software Development Kit supports Windows (XP and Vista), Linux (Ubuntu Dapper Drake), and Mac OS X (10.4.8 or later) as host development environments. Installation of the SDK is substantially the same for any of the operating systems, and most of this description applies equally to all of them. Where the procedure differs, i will clearly tell you what to do for each environment.

1. Install Eclipse: The Android SDK requires Eclipse version 3.2 or 3.3 (also known as Europa) or later. If you do not have that version of Eclipse installed yet, you will need to go to eclipse download page to get it, and you might as well get version 3.3 since that package includes the required plugins mentioned in the next step. You want the version of the Eclipse IDE labeled “Eclipse IDE for Java Developers,” and obviously you want the version for your operating system. Eclipse will ask you to select a mirror site, and will then start the download.

Windows (XP or Vista)
The Eclipse download comes as a big ZIP file that you install by extracting the files to your favorite directory. I assume that you extracted to C:/eclipse. Eclipse is now installed, but it will not show up in your Start menu of applications. You may want to create a Windows shortcut for C:/eclipse/eclipse.exe and place it on your desktop, in your Start menu, or someplace else where you can easily find it.
Linux and Mac OS X
The Eclipse download comes as a big tarball (.gz file) that you install by extracting the files to your favorite directory. For now, i ‘ll assume that you extracted to /usr/lib/eclipse.

2. Check for Required Plugins: You can skip this step if you just downloaded a current version of Eclipse as we recommended. If you are using a pre-installed version of Eclipse that was already on your PC, you need to make sure you have the Java Development Tool (JDT) and Web Standard Tools (WST) plug-ins installed. You can easily check to see whether they are installed by starting Eclipse and selecting menu options “WIndows -> Preferences…” The list of preferences should include one for “Java” and one for “Web and XML.” If they aren’t on the list, the easiest thing to do is reinstall Eclipse, as described in the previous step. Installing “Eclipse IDE for Java Developers” will automatically get the needed plugins.

3. Install JDK: The Android SDK requires JDK version 5 or version 6. If you already have one of those installed, skip to the next step. In particular, Mac OS X comes with the JDK version 5 already installed, and many Linux distributions include a JDK. If the JDK is not installed, go to javaSE download page and you’ll see a list of Java products to download. The one you want is JDK 6 Update n for your operating system, where n is 6 at the time this is written.

Windows (XP and Vista)
Select the distribution for “Windows Offline Installation, Multi-language.”
Read, review, and accept Sun’s license for the JDK. (The license has become very permissive, but if you have a problem with it, alternative free JDKs exist.)
Once the download is complete, a dialog box will ask you whether you want to run the downloaded executable. When you select “Run,” the Windows Installer will start up and lead you through a dialog to install the JDK on your PC.

Linux
Select the distribution for “Linux self-extracting file.”
Read, review, and accept Sun’s license for the JDK. (The license has become very permissive, but if you have a problem with it, alternative free JDKs exist.)

You will need to download the self-extracting binary to the place you want to install the JDK on your filesystem. If that place is a system wide directory (such as /usr/local), you will need root access. After the file is downloaded, make it executable (chmod +x jdk-6version-linux-i586.bin) , and execute it. It will self-extract to create a tree of directories.
Mac OS X
Mac OS X comes with JDK Version 5 already loaded.

4. Install Android SDK: This is where you’d start if you already have the right versions of Eclipse and the JDK loaded. The Android SDK is distributed through Google’s code site . You will need to read, review and accept the terms of the license to proceed. When you get to the list of downloads, you will see a table of distributions. Select the one for your operating system (XP and Vista use the same distribution). The package (file) names include the release number.

The file you download is another archive file, as with Eclipse: a ZIP file on Windows, a tar-zipped file for Linux and MacOS X. Do the same thing as for Eclipse: extract the archive file to a directory where you want to install Android, and make a note of the directory name (you’ll need it in Step 7). The extraction will create a directory tree containing a bunch of sub-directories, including one called tools.

5. Update Environment Variables: To make it easier to launch the Android tools, add the tools directory to your path.

Under Windows XP, click on Start, then right-click on My Computer. In the pop-up menu, click on Properties. In the resulting System Properties dialog box, select the Advanced tab. Near the bottom of the Advanced tab is a button, “Environment Variables,” that takes you to an Environment Variables dialog. User environment variables are listed in the top half of the box, System environment variables in the bottom half. Scroll down the list of System environment variables until you find “Path,” select it, and click the “Edit” button. Now you will be in an Edit System Variable dialog that allows you to change the environment variable “Path.” Add the full path of the tools directory to the end of the existing Path variable and click “OK.” You should now see the new version of the variable in the displayed list. Click “OK” and then “OK” again to exit the dialog boxes.

On Windows Vista, click on the Microsoft “flag” in the lower left of the desktop, then right-click on Computer. At the top of the resulting display, just below the menu bar, click on “System Properties.” In the column on the left of the resulting box, click on “Advanced system settings.” Vista will warn you with a dialog box that says “Windows needs your permission to continue”;- click “Continue.” Near the bottom of the “System Properties” is a button labeled “Environment Variables” that takes you to an Environment Variables dialog. User environment variables are listed in the top half of the box, System environment variables in the bottom half. Scroll down the list of System environment variables until you find “Path,” select it, and click the “Edit” button. Now you will be in an Edit System Variable dialog that allows you to change the environment variable “Path”. Add the full path of the tools directory to the end of the existing Path variable, and click “OK.” You should now see the new version of the variable in the displayed list. Click “OK” and then “OK” again to exit the dialog boxes.

On Linux, the PATH environment variable can be defined in your ~/.bashrc ~/.bash_profile file. If you have either of those files, use a text editor such as gedit, vi, or Emacs to open the file and look for a line that exports the PATH variable. If you find such a line, edit it to add the full path of the tools directory to the path. If there is no such line, you can add a line like this:

export PATH=${PATH}:your_sdk_dir/tools

where you put the full path in place of

your_sdk_dir.

On MacOS X, look for a file named .bash_profile in your home directory (note the initial dot in the filename). If there is one, use an editor to open the file and look for a line that exports the PATH variable. If you find such a line, edit it to add the full path of the tools directory to the path. If there is no such line, you can add a line like this:

export PATH=${PATH}:your_sdk_dir/tools

where you put the full path in place of

your_sdk_dir

6. Install the Android Plugin (ADT): Throughout this series, i will make use of the Android Development Tool plugin that Google supplies for use in building Android applications. The plugin is installed in much the same way as any other Eclipse plugin:

Start Eclipse, if it’s not already running.

From the menu bar, select “Help -> Software Updates -> Find and Install…”

  • In the Install/Update dialog, select “Search for new features to install” and click on “Next.”
  • In the Install dialog, click on “New Remote Site.” A “New Update Site” dialog pops up. Enter a name for the plugin (“Android Plugin” will do), and the URL for updates: https://dl-ssl.google.com/android/eclipse. Click “OK.”
  • The new site should now appear in the list of sites on the Install dialog. Click “Finish.”
  • In the Search Results dialog, select the checkbox for “Android Plugin -> Developer Tools” and click “Next.”
  • The license agreement for the plugin appears. Read it, and if you agree, select “Accept terms of the license agreement” and click “Next.” Click “Finish.”
  • You will get a warning that the plugin is not signed. Choose to install it anyway by clicking “Install All.”
  • Restart Eclipse.
  • After Eclipse restarts, you need to tell it where the SDK is located. From the menu bar, select “Window -> Preferences.” In the Preferences dialog, select “Android” in the left hand column.
  • Use the “Browse” button to navigate to the place you installed the Android SDK, and click on “Apply,” then on “OK.”

Congratulations–you have installed a complete Android development environment without spending a penny. As you’ll see in this and subsequent chapters, the environment includes a very sophisticated set of tools to make Android programming easier, including:

An Integrated Development Environment based on Eclipse, arguably the premier IDE for Java development. Eclipse itself brings many valuable development features. Google and OHA have taken advantage of Eclipse’s extensibility to provide features customized for Android, including debugging capabilities that are tuned to the needs of mobile application developers like you.

A Java development environment and Dalvik virtual machine that build on Sun’s JDK foundation to provide a very sophisticated programming environment for your applications.

A complete mobile phone emulator that allows you to test your applications without having to download them to a target mobile phone. The emulator includes features for testing your application under different mobile phone communication conditions (fading, dropped connections, etc.).

Test tools, such as TraceView, which allow you to tune your application to take best advantage of the limited resources available on a mobile phone.

feel free to comment and give suggestion … if i missed anything kindly let me know ..

happy development 🙂
free counters

Author Profile

Aasim Naseem
Hey, Thanks for your interest. I’m a PMP, AWS Solutions Architect, and Scrum Master certified professional with 17+ years of hands-on experience leading projects, building teams, and helping organizations deliver software solutions better, faster, and smarter.

Outside of work, I’ve got a deep curiosity for history — especially ancient civilizations like Egypt. I also enjoy reflecting on the everyday moments that shape how we live and work. This blog is my space to share insights, lessons, and thoughts from both my professional journey and personal interests.

Thanks for reading — and I hope you will find something here that matches your interest.
Latest entries
  • Economic impact of Eid ul Adha - AasimNaseem.comIslamJune 6, 2025 | Read Count: 283Economic impact of Eid-ul-Adha
  • Best PMP Exam Study Resources - AasimNaseem.comPMP CertificationMay 23, 2025 | Read Count: 493Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
  • agile vs scrum - AasimNaseem.comAgile & FrameworksMay 7, 2025 | Read Count: 463Agile vs Scrum: Finally Understanding the Difference
  • When Agile shouldn’t Use - AasimNaseem.comAgile & FrameworksApril 25, 2025 | Read Count: 494When Not To Use Agile: 5 Signs You Need a Different Approach
Android AndoridAndroid Application Development TutorialAndroid Developer Tool (ADT)Creating an Android Development EnvironmentEclipse

Post navigation

Previous post
Next post

Related Posts

Android Android App Development - Part 2 - AasimNaseem.com

Android Application Development Tutorial :: Part 1

May 27, 2010 | Read Count: 15,455April 9, 2025

Category: My Tutorials > AndroidHello All. Hope everything is going good at your end … Today I’m going to start new series of my tutorial. This is related to Android application development. Here I will try to explain about androidplatform,  its core constitutes and development of some simple applications for…

Read More

Comments (10)

  1. CodyCH says:
    July 23, 2010 at 9:32 pm

    Great post! 😀

    Reply
    1. Ans says:
      July 28, 2010 at 2:47 pm

      thanks bro… need your feedback to improve …

      Reply
  2. jane says:
    September 15, 2010 at 9:27 pm

    I just started blogging a while ago and it feels great

    Reply
  3. Vishnu says:
    September 18, 2010 at 3:08 pm

    Great post. Thnx for sharing… I have a doubt… Is an Android supported phone necessary for Android development?

    Reply
    1. Ans says:
      September 18, 2010 at 4:25 pm

      umm not much ..you can still develop Android applications on your system, but off course for final testing you need an Android phone. Though you can test application completely on android simulator on your system but for final and end-user testings you need and android phone.

      thanks for your time to read and comment. Need your kind suggestions to improve.

      Reply
  4. Vishnu says:
    September 19, 2010 at 1:15 pm

    Oh thanx a lot…. I’ll surely look into your posts in future…

    Reply
  5. anitha1234 says:
    October 22, 2010 at 2:42 pm

    Best Software Downloads and Reviews. the most comprehensive source for free-to-trysoftware downloads on the WebBEST 4 DOWNLOADS

    Reply
  6. Juan Sansbury says:
    March 1, 2011 at 9:46 am

    I simply want to say I am just beginner to blogging and site-building and definitely loved you’re blog. Very likely I’m likely to bookmark your blog . You amazingly come with fantastic well written articles. With thanks for revealing your website page.

    Reply
  7. nisha says:
    April 26, 2011 at 8:13 pm

    where s d tools directory????

    Reply
  8. Muhammad Teguh says:
    January 26, 2012 at 1:37 am

    any update for this project..?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Economic impact of Eid-ul-Adha
    Economic impact of Eid-ul-Adha
    June 6, 2025 | Read Count: 283
  • Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
    Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
    May 23, 2025 | Read Count: 493
  • Agile vs Scrum: Finally Understanding the Difference
    Agile vs Scrum: Finally Understanding the Difference
    May 7, 2025 | Read Count: 463
  • When Not To Use Agile: 5 Signs You Need a Different Approach
    When Not To Use Agile: 5 Signs You Need a Different Approach
    April 25, 2025 | Read Count: 494
  • Quran on Peace and Kindness
    Quran on Peace and Kindness
    April 20, 2025 | Read Count: 453

Posts from Past

  • June 2025
  • May 2025
  • April 2025
  • January 2025
  • November 2024
  • April 2024
  • October 2022
  • August 2021
  • September 2020
  • May 2020
  • April 2019
  • January 2019
  • September 2018
  • July 2015
  • June 2015
  • November 2014
  • September 2014
  • April 2014
  • June 2013
  • May 2013
  • February 2013
  • January 2013
  • December 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009

Categories List

  • Agile & Frameworks
  • Amazon Kindle
  • Android
  • Aspect Oriented Programming
  • BlackBerry
  • Blog
  • Code Repositories
  • History
  • iOS
  • Islam
  • Java
  • JavaScript
  • Life Around Us
  • Linux
  • My Bookshelf
  • My Poetry
  • My Sketch Work
  • PMP Certification
  • Random Tips
  • Saunterer Soul

Recent Posts

  • Economic impact of Eid-ul-Adha
  • Best PMP Study Resources for 2025 (Books, Courses, Tools & More)
  • Agile vs Scrum: Finally Understanding the Difference
  • When Not To Use Agile: 5 Signs You Need a Different Approach
  • Quran on Peace and Kindness

Recent Comments

  1. Aasim Naseem on When Not To Use Agile: 5 Signs You Need a Different Approach
  2. Aasim Naseem on When Not To Use Agile: 5 Signs You Need a Different Approach
  3. Masjid Wazir Khan, Lahore Pakistan - Aasim's Web Corner on Everlasting Art of Badshahi Masjid Lahore Pakistan
  4. Rishi Kumar on When Not To Use Agile: 5 Signs You Need a Different Approach
  5. Best PMP Study Resources for 2025 (Books, Courses, Tools & More) - Aasim's Web Corner on PMP Exam Eligibility 2025: 3 Things You Need to Know
©2025 Aasim's Web Corner | WordPress Theme by SuperbThemes