Running Your Android Application in the Emulator

Now you can run the MyFirstAndroidApp application using the following steps:

1. Choose the Run As icon drop-down menu on the toolbar (the little green circle with the play button and a drop-down arrow) |.

2. Pull the drop-down menu and choose the Run Configuration you created. (If you do not see it listed, choose the Run Configurations... item and select the appropriate configuration. The Run Configuration shows up on this drop-down list the next time you run the configuration.)

3. Because you chose the Manual Target Selection mode, you are now prompted for your emulator instance. Change the selection to start a new emulator instance, and check the box next to the AVD you created, as shown in Figure 3.9.

Figure 3.9 Manually choosing a target selection mode.

4. The Android emulator starts up, which might take a moment.

It can take a long time for the emulator to start up. You might want to leave it around while you work and reattach to it as needed. The tools in Eclipse handle reinstalling the application and re-launching the application, so you can more easily keep the emulator loaded all the time.

5. Press the Menu button to unlock the emulator.

6. The application starts, as shown in Figure 3.10.

7. Click the Home button in the Emulator to end the application.

8. Pull up the Application Drawer to see installed applications.Your screen looks something like Figure 3.11.

9. Click on the My First Android Application icon to launch the application again.

Figure 3.10 My First Android App running in the emulator.

| affiie 7:55pm i

Alarm Clock




Car Home

Dev Toots









Figure 3.11 My First Android App application icon in the Drawer.

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