Tips to Quickly Get Started with Android Hello World!

2

The article is written for those curious ones (Java developers at all level) who want to quickly get started with Android programming. This is what I did and got started with few hiccups (in relation with starting ADB server) to get the hello world done.

  • Download right set of tool: Visited the android SDK download page where I got option to download appropriate libraries/tools based on whether I am using one of the existing supported IDE such as eclipse. Although, I am an experienced Java developer and use Eclipse, I rather went with downloading entire ADT bundle consisting of eclipse and SDK platform/tools.
  • Choosing System Type: While I downloading I needed to take care of System type (32-bit or 64-bit). Easiest way to find is to open windows explorer, and right click on “Computer” and check “System type” on the pop-up window. This is a very critical step as you may have to download the tool twice if you end up doing mistake.
  • Start ADB Server: Once downloaded, I opened a command prompt window and went to <root-directory>\adt-bundle-<version>\sdk\platform-tools. There, I started adb server by giving command adb start-server. ADB stands for Android Debug Bridge. If you do not do this, and start eclipse and run helloWorld android application, you may end up with error such as “The connection to adb is down, and a severe error has occured
  • Start Eclipse: Start Eclipse by going into <root-directory>\adt-bundle-<version>\eclipse and double-click on eclipse.
  • Hello World Application:  Create a new “Android Application” by choosing default options. For details, I read instructions from “creating an android project” page.
  • Run the HelloWorld App: Once done with android project creation, visited this page to follow the instructions to run the app on the emulator device and get to the following UI.
    android hello world

    android hello world

 

And, That’s it! Let me know if it worked for you.

Ajitesh Kumar
Share.

2 Comments

  1. This is one of the easiest article to get started with android programming. I was breaking my head since last 2 days. Thanks

Leave A Reply

Time limit is exhausted. Please reload the CAPTCHA.