Creating the Application’s Screens
The Task Reminder application needs two different screens to perform all its basic functions: create, read, update, and delete (CRUD) tasks:
One view lists all current tasks in the application. This view also allows the user to delete a task by long-pressing the item.
A view to allow the user 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.
Each screen consists of a single code fragment that contains most of the user interface for the screen, and that fragment is contained in an activity.
Starting the new project
To get started, open Eclipse and create a new Android project with a valid name, package, and activity. Table 9-1 shows the Eclipse settings for the Task Reminder app. (If you’re unfamiliar with how to create an Android project, see Chapter 3.)
If you download the source code from this book’s website, you can also open the Chapter 9 Android project example.
Table 9-1 New Project Settings
|
Property ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
