24

I need to know how to run an Android emulator automatically from Eclipse.

Any ideas?

tshepang
  • 12,111
  • 21
  • 91
  • 136

2 Answers2

39

Once you have installed ADT, you need to define an ADT launch configuration, in order for your project to execute itself as an Android executable.

Hello World Android


Then, do not forget to To go in Eclipse->Preferences->Run/Debug->Launching.
In the “Launch Operation” subsection, select “Always launch the previously launched application”:

Eclipse launching options

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 2
    This caused so much pain, manually had to click "launch android application" every time... Too bad it took me 6 months to even google the problem ;( – Daniel Magnusson Apr 01 '10 at 12:44
  • 1
    how did you make this second screen shot ? – Chirag Patel Mar 06 '12 at 10:46
  • 2
    @chiragsaga see the comments of http://stackoverflow.com/a/3590996/6309 or http://stackoverflow.com/a/2612688/6309 or http://stackoverflow.com/a/2306953/6309 or http://stackoverflow.com/a/3360636/6309 ... ;) – VonC Mar 06 '12 at 11:35
  • 1
    @chiragsaga: No. For Mac, I would go with http://www.flyingmeat.com/flysketch/ or (better) http://skitch.com/. Other alternatives listed at: http://alternativeto.net/software/faststone-capture/?platform=mac – VonC Mar 07 '12 at 07:42
0

There are two ways for that..

  • Launch AVD from Menu bar

    Steps :

    1. Click on Android Virtual Device Manager

      image1

    2. Select the device you have created and click Start

      image2

    3. Click Launch and wait to AVD be launched..

      image3

    4. Your AVD is running..

      image4

  • Launch AVD from Run Configuration

    Steps :

    1. Right click on Run icon at menu bar and select Run Configuration

      image5

    2. Select Target tab > Select third radio option says (Automatically pick compatible device : ...) > Tick your desire AVD you want to launch > click Apply > click Run

      image6

Iamat8
  • 3,888
  • 9
  • 25
  • 35