How To Create An Android Application On Ubuntu 11.10 From Command Line

Even though Eclipse is a great open-source IDE to develop applications, it does use a lot of resources. Apart from that, not being a developer, I simply cannot find my way around with Eclipse. Hence, through this post, we aim at explaining how to create Android Applications from the command line. You can find the Eclipse way here.

Every small program or application has to go through a well defined life cycle. Most of the time only difference that a particular technology brings to a life cycle is name by which each stage is known as.

Android application development also goes through a life cycle that involves couple of stages and steps.
The image below shows the stages involved in android application development. There are four stages in the development of an Android Application – Setup, Development, Debugging and Testing, and Publishing.

We have tried to split the stages into different post for better readability and this post provides appropriate links to them.

Stage 1 – Setting up the development environment

In this stage, we shall setup our development environment. This stage in turn involves couple of steps as explained below:

Stage 2 – Development

In this stage, we setup the project and create the android application.

Stage 3 – Debugging and Testing

In this stage, we shall build, test, and deploy the Hello World application on the emulator. We will use an emulator, as we do not have an actual Android device.

Stage 4 – Publishing

This is the final stage and in this stage, the application is built in release mode to be able to market it in the Android Marketplace.

Uninstalling the deployed Application

While testing, you may need to uninstall the application, before deploying a new one. To uninstall the application from the emulator, follow these steps -

  1. Open the AndroidManifest.xml file, and note the specified package name, which will be what we specified when we created the Android Project.
  2. Issue the command adb uninstall <package name>

E.g. In our case, the command would be:

We hope that this article has been useful and will be of assistance in your development of Android Applications. Refer to for more information.

Leave a Reply

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


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">