11

SDK and ADT are installed and working, but when I run some android code, the "Run As" panel is empty. I need to go to Run configuration, click on Android application, make a copy, put the name of my project on the copy and the run it. Then it run properly on the emulator. How can I add the "android application" item menu inside the run as menu?

tshepang
  • 12,111
  • 21
  • 91
  • 136
Terix
  • 1,367
  • 5
  • 25
  • 39

4 Answers4

7

You could Right Mouse Button Click(on activity class) > Run As > Run Configurations. Next is Right Mouse Button Click on Android Application > New. Now you should add your virtual emulator in Target. It works in my version of IDE.

Now you can use this run configurations with your own settings.

Pavel
  • 4,912
  • 7
  • 49
  • 69
  • 1
    i'm not so expert with eclipse... what do you mean with "RMK"? I've googled and searched help section but i didn't find anything :( – Terix Oct 11 '11 at 05:23
  • Could you give more details regarding "Next is RMK on Android Application > New. Now you should add your virtual emulator in Target"? – sll Dec 20 '11 at 13:43
  • Click on your `activity class`, choose `Run As` menu, then choose `Run Configurations`... Here you can adjust your emulator settings – Pavel Jan 20 '12 at 04:24
  • I am having the same problem; unfortunately, *Android Application* is not among the available options in the respective dialog box any more. – O. R. Mapper Dec 15 '13 at 12:54
3

"Run as Android application" is available if u run the project (right click project name and u have that option) , and not a specific activity file ..

hari_sree
  • 1,508
  • 3
  • 12
  • 24
2

Maybe this is a bit late to be answering this, but I think my answer is better. The right click is all fine and well, but it is a bit more effort each time than my suggestion.

Right click on the toolbar and click "Customise Perspective..." On the toolbar structure that pops up find "Launch" (On mine it's the 5th item down - it might vary) Then you need to tick the "Run " box After you click "OK" it should be back in the toolbar and in the menu

2

Just select Run > Run in eclipse and select android application.The Eclipse plugin automatically creates a new run configuration for your project and then launches the Android Emulator.

COD3BOY
  • 11,964
  • 1
  • 38
  • 56