Tuesday, October 20, 2009

Launching Android in Eclipse

Have you had to select "Android Application" EVERY TIME you hit Ctrl+F11 to launch your android application?? Yea i agree... its annoying.

Well, just goto Window -> Preferences -> Run/Debug -> Launching

Right at the bottom you'll find a section called "Launch Operation".
Select: Launch the selected resource or active editor. If not launchable:
Select: Launch the previously launched application.

Its that second option that makes all the difference. Every time to hit Ctrl+F11, eclipse cannot find a launcher for the "active editor". So now it will default to the last launched config which should be the same application.

But you do have to create and run a launch configuration first. Also a drawback here would be that you cannot co-develop two android projects and expect to run them at your will.... there's always a catch. (sigh)

No comments:

Post a Comment