Creating a Launch Configuration for Your Snake Project

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

Crpalp rw

w Androp Virtunl Ovirr (AVH) ,

Nnmc

Android_Viiniltn?.7

Tmyrl:

Artdniicl 7.7 - APT J rvrl ß

'1

MJ Lard:

■m See 1024

Miß »

File

1 1 Brow»... J

ton;

9 Bullt Ine ¡WVÜAÖOO

-

' RpviiIiiIjihi: x

Hardware

Propefty Value

New... 1

Abstractcd KU density ¿40 Max VM opplicaticn hca... 24

Delete]

Override the casting AVU with Ihc same name

[ OriirAUD ]

Figure 3.4 Creating a new AVD in Eclipse.

You can create Run Configurations and Debug Configurations separately, each with different options.These configurations are created under the Run menu in Eclipse (Run, Run Configurations and Run, Debug Configurations).

Follow these steps to create a basic Run Configuration for the Snake 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 SnakeRunConfiguration (see Figure 3.5).

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

5. Switch to the Target tab and, from the preferred AVD list, choose the Android_Vanilla2.2 AVD created earlier, as shown in Figure 3.5.

You can set other options on the Target and Common tabs, but for now we are leaving the defaults as they are.

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