Android Development – Running Android App

For running your apps there are two possible ways :

  • Running on the emulator
  • Running on a device

Running on the emulator

Emulator are the Android Virtual Devices (AVD) that we need to configure in order to run our android apps.

Step 1 – Open AVD Manager

AVD Manager

Step 2 – Click on New Button to add a new device, and configure your device settings.

New Device - AVD Manager


Step 3 – There will be a result window showing all the configuration you had chosen on the previous screen.

Configuration Result - AVD Manager

Step 4 – Press ‘Ok‘ and you will see your device listed in there and now you can close this window now.

List of Devices - AVD Manager

Step 5 – Run your android app project from eclipse and if there is only one AVD configured it will automatically deploy the app to it else a window will appear to choose your AVD. Emulator will start.

Android Emulator

Running on the Device

Android app can directly be deployed on the android device, for this few configurations are needed.

Step 1 – Set the application in the debug-able mode by setting android:debuggable attribute of the <application>element to true. For ADT 8.0 this is done by default. (In our ADT we do not need to perform this step)

Step 2 – Enable USB debugging on your device:

For Android 3.2 or older Goto Settings>Applications>Development and enable USB Debugging.

USB Debugging

On Android 4.0 and newer, it’s in Settings > Developer options.

Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Step 3 – Install USB drivers for your device so that the computer recognizes your device.

Step 4 - Once set up and your device is connected via USB, install your application on the device by selecting Run > Run (or Run >Debug) from the Eclipse menu bar.


Android Development – Getting Started

I hope the Android Development - Intro helped you in configuring your machine for developing Android apps, in this tutorial we will quick start our first Android app. Here is a step wise article.

Step 1 – Start the eclipse extracted from the adt-bundle  i.e  %….%adt-bundle-windows/eclipse/eclipse.exe

Step 2 – A workspace launcher will popup and you have to define the workspace for your android apps, workspace is the place where all the source files are kept.

Workspace Launcher

Step 3 – Once you have selected your workspace now your IDE is ready for you, Goto File>New>Android Application Project

Android Application Project

Step 4 – Next step is about configuring your project, it will have options like creating custom launcher and adding activity etc.

Configure Android Project

Step 5 – Hence we have checked Create custom launcher icon in the previous screen, this screen allows to add our custom launcher icon. Here I’m using the default icons.

Custom Launcher Icon

Step 6 – Next we have to decide the activity for our app, there are different types of activity available but for the beginners we will start with BlankActivity.

Create Activity Android Application

Step 7 -  In this screen you can give name to your activity.

Name Activity - Android

This was all the configuration part, its done now you can start your real coding. After completing the above steps, you will see a designer screen, where you can design and code your app.

New App Designer - Android

Now we have the blank app with the title MyFirstApk and “Hello world!” text in center. This is just a hello world app, lets start Running Android App.

Android Development – Intro

Since last few days I was trying to get my hands on some new technology, tried many but finally landed with Android Development. The only thing which attracted me to this is that I can deploy my apps directly to my phone. Here is a quick tutorial how to get started.

Android plugins are available in the major IDEs like Eclipse and NetBeans, I tried configuring with all but the ADT (Android Development Tool) available is easy to use and recommended. Just download the bundle and extract to a specific location and it does everything for you.

With a single download, the ADT Bundle includes everything you need to begin developing apps:

  • Eclipse + ADT plugin
  • Android SDK Tools
  • Android Platform-tools
  • The latest Android platform
  • The latest Android system image for the emulator

Android Development Tool

Stay Tuned for next posts on android development.