5.2.1. Importing the App and Running It

Perform the following steps to import the app into the IDE:

1. Opening the Import dialog. Select File > Import....

2. Importing the Flag Quiz app’s project. Expand the General node and select Existing Projects into Workspace. Click Next > to proceed to the Import Projects step. Ensure that Select root directory is selected, then click Browse.... Locate the FlagQuiz folder in the book’s examples folder, select it and click OK. Ensure that Copy projects into workspace is not selected. Click Finish to import the project so that it appears in the Package Explorer window.

3. Launching the Flag Quiz app. Right click the FlagQuiz project and select Run As > Android Application to execute the app in the AVD or ...

Get Android™ How to Program, Second 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.