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 -
- Open the AndroidManifest.xml file, and note the specified package name, which will be what we specified when we created the Android Project.
- Issue the command adb uninstall <package name>
E.g. In our case, the command would be:
$ adb uninstall com.example.myandroid
We hope that this article has been useful and will be of assistance in your development of Android Applications. Refer to http://developer.android.com/ for more information.