4.4.1. Creating the Project

Recall that the Android Developer Tools IDE allows only one project with a given name per workspace, so before you create the new project, delete the TwitterSearches project that you test-drove in Section 4.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 the original app again later.

Creating a New Blank App Project

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: Twitter Searches

Project name: TwitterSearches

Package name: com.deitel.twittersearches

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

In the New Android Project dialog’s second New Android Application step, leave the default settings, and press Next >. In the Configure Launcher Icon step, click the Browse... button, and select an app icon image (provided in the images folder with the book’s examples), click the Open button, then press Next >. In the Create Activity step, select Blank Activity, then press Next >. In the Blank Activity step, leave the default settings and click 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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.248.159