O'Reilly logo

Android Application Development For Dummies, 2nd Edition by Donn Felker, Michael Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

check.png One view lists all current tasks in the application. This view also allows the user to delete a task by long-pressing the item.

check.png 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.

tip.eps You can reuse fragments if — or when — you build tablet support into your app. See Part IV for tablet development.

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required