Pages

Saturday, 1 March 2014

Running Android Application

In this tutorial we will see how to run an android application.

So for that we have two methods:
  1.   Either we can run on Android Virtual Device(AVD).
  2. Or we can run our application on an actual android device.
Running on Android Virtual Device(AVD)

Before running an android application on a virtual device we have to create one.

Steps for creating Android Virtual Device:
  1. Go to Windows->Android Virtual Device Manager.
  2. Click on New
  3. Add details for Android Virtual Device.
  4. Click OK

Now after creating a virtual device just start it from Android Virtual Device Manager and when you will run your application, eclipse will automatically install the application on your virtual device.

Running on Actual Android Device.
  1. Go to Settings in your phone.
  2. Locate Development and tick USB Debugging.
  3. Connect your phone through USB.
  4. Click Run from Eclipse.
  5. Select appropriate device from Android Device Chooser and click OK.
  
Eclipse will then automatically install the application in your device.

No comments:

Post a Comment