Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to hide the Android Device Chooser?

Tags:

android

Whenever I run my app I get the Android Device Chooser dialog:

alt text

This is happening because I am using the Google APIs for 1.6 and trying to run the application on my Nexus one. Is there any way to make this automatically, or to not check the compatibility? Sometimes when I make a modification and quickly after I save and run the application, Eclipse will build the project and the Android Device Chooser dialog will show briefly and disappear and the app won't run. I have to click run again for it to work. Any workarounds?

like image 444
Jan S. Avatar asked Apr 05 '10 18:04

Jan S.


2 Answers

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.


(source: google.com)


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”:


(source: turbulent.ca)

like image 147
Pentium10 Avatar answered Sep 19 '22 18:09

Pentium10


Create a run configuration.

Run -> Run Configurations.

Select your project and specify your target and from then on run that configuration when you run that app.

like image 42
Ravi Vyas Avatar answered Sep 19 '22 18:09

Ravi Vyas