Creating the Application's Screens
The first part of the process of developing the Task Reminder application is to create the screens. The Task Reminder app will have two different screens that perform all the basic CRUD (Create, Read, Update, and Delete) functions, as follows:
- A task list screen: A list view that lists all the current tasks in the application by name. This view also allows users to delete a task by long-pressing an item.
- An add/edit screen: A view that allows users to view (Read), add (Create), or edit (Update) a task.
Each screen eventually interacts with a database for changes to be persisted over the long-term use of the application.
Starting the new project
To get started, open Eclipse and create a new Android project with a Build Target of Android 3.0 and a MinSDKVersion of 11. Provide it with a valid name, package, and activity. The settings I have chosen are shown in Table 11-1. If you prefer, you can open the example Android project for Chapter 11 from this book's companion website. This provides you with a starting point that has the same settings as my project.
|Project Name||Task Reminder|
|Build Target||Android 3.0 (API Level 11) or greater|
|Application Name||Task Reminder|
|Min SDK Version||11|
Note the Create Activity property value — ReminderListActivity. (I chose this name over ListActivity because this is ...