Categories: AndroidMobility

Tips to Quickly Get Started with Android Hello World!

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

 

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

Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking.

View Comments

Share
Published by
Ajitesh Kumar
Tags: android

Recent Posts

Agentic Reasoning Design Patterns in AI: Examples

In recent years, artificial intelligence (AI) has evolved to include more sophisticated and capable agents,…

2 months ago

LLMs for Adaptive Learning & Personalized Education

Adaptive learning helps in tailoring learning experiences to fit the unique needs of each student.…

2 months ago

Sparse Mixture of Experts (MoE) Models: Examples

With the increasing demand for more powerful machine learning (ML) systems that can handle diverse…

3 months ago

Anxiety Disorder Detection & Machine Learning Techniques

Anxiety is a common mental health condition that affects millions of people around the world.…

3 months ago

Confounder Features & Machine Learning Models: Examples

In machine learning, confounder features or variables can significantly affect the accuracy and validity of…

3 months ago

Credit Card Fraud Detection & Machine Learning

Last updated: 26 Sept, 2024 Credit card fraud detection is a major concern for credit…

3 months ago