Creating Launch Configurations for Your Project

Appportunity

Build your own Android App Dev Empire

Get Instant Access

Next, you must create a Run and Debug launch configuration in Eclipse to configure the circumstances under which the MyFirstAndroidApp application builds and launches. The launch configuration is where you configure the emulator options to use and the entry point for your application.

You can create Run Configurations and Debug Configurations separately, with different options for each. Begin by creating a Run Configuration for the application.

Follow these steps to create a basic Run Configuration for the MyFirstAndroidApp application:

1. Choose Run, Run Configurations (or right-click the Project and Choose Run As).

2. Double-click Android Application.

3. Name your Run Configuration MyFirstAndroidAppRunConfig.

4. Choose the project by clicking the Browse button and choosing the MyFirstAn-droidApp project.

5. Switch to the Target tab and set the Device Target Selection Mode to Manual.

If you leave the Device Target Selection mode on Automatic when you choose Run or Debug in Eclipse, your application is automatically installed and run on the device if the device is plugged in. Otherwise, the application starts in the emulator with the specified AVD. By choosing Manual, you are always prompted for whether (a) you want your application to be launched in an existing emulator; (b) you want your application to be launched in a new emulator instance and allowed to specify an AVD; or (c) you want your application to be launched on the device (if it's plugged in). If any emulator is already running, the device is then plugged in, and the mode is set to Automatic, you see this same prompt, too.

Now create a Debug Configuration for the application.This process is similar to creating a Run Configuration. Follow these steps to create a basic Debug Configuration for the MyFirstAndroidApp application:

1. Choose Run, Debug Configurations (or right-click the Project and Choose Debug As).

2. Double-click Android Application.

3. Name your Debug Configuration MyFirstAndroidAppDebugConfig.

4. Choose the project by clicking the Browse button and choosing the MyFirstAndroidApp project.

5. Switch to the Target tab and set the Device Target Selection Mode to Manual.

6. Click Apply, and then click Close.

You now have a Debug Configuration for your application.

Was this article helpful?

0 0
Easy Software Profits

Easy Software Profits

Here's How Anyone Can Start, Build and Run their Own Successful Software Empire Without Knowing the First Thing About Programming, Scripting Or Any 'Coder' Stuff. There is no doubt about it software sells. Software has a high percieved value and it solves problems for people.  A claim that can't always be made for PDF books, Video products and the like.

Get My Free Ebook


Post a comment