Creating Launch Configurations

You’re almost at the point where you can run the application. A run configuration specifies the project to run, the activity to start, and the emulator or device to connect to. Whoa! That’s a lot of stuff happening quickly. Not to worry — the ADT can help you by automating many key steps so that you can get up and running quickly.

The Android ADT gives you two options for creating launch configurations:

check.png Run configuration: You need to run your application on a given device. You’ll use run configurations most of the time during your Android development career.

check.png Debug configuration: You’re debugging your application while it’s running on a given device. You can find out how to debug in Chapter 5.

tip.eps When you first run a project as an Android application by choosing Run⇒Run, the ADT automatically creates a run configuration for you. The Android Application option is visible when you choose Run⇒Run. After the run configuration is created, it’s the default run configuration, now used every time you choose Run⇒Run.

If you’re feeling ambitious and decide that you want to create a run configuration manually, follow along here. Don’t worry — following these steps ...

Get Android Application Development For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.