The Android Developer Tools IDE allows only one project with a given name per workspace, so before you create the new project, delete the TipCalculator
project that you test-drove in Section 3.2. To do so, right click it and select Delete. In the dialog that appears, ensure that Delete project contents on disk is not selected, then click OK. This removes the project from the workspace, but leaves the project’s folder and files on disk in case you’d like to look at our original app again later.
Next, create a new Android Application Project. Specify the following values in the New Android Project dialog’s first New Android Application step, then press Next >:
• Application name: Tip Calculator
• Project name: TipCalculator
• Package name: com.deitel.tipcalculator
• Minimum Required SDK: API18: Android 4.3
• Target SDK: API19: Android 4.4
• Compile With: API19: Android 4.4
• Theme: Holo Light with Dark Action Bar
• Create Activity: TipCalculator
• Build Target: Ensure that Android 4.3 is checked
In the New Android Project dialog’s second New Android Application step, leave the default settings, then press Next >. In the Configure Launcher Icon step, click the Browse... button, select the DeitelGreen.png
app icon image (provided in the images
folder with the book’s examples) and click the Open button, then press Next >. In the Create Activity step, select Blank Activity (keep the default activity name), then press Next >. In the Blank Activity step, leave the default settings, then press Finish to create the project. In the Graphical Layout editor, select Nexus 4 from the screen-type drop-down list (as in Fig. 2.12). Once again, we’ll use this device as the basis for our design.