Chapter 1. Developing a Simple Activity

In the world of Android, an Activity is the point at which you make contact with your users. It's a screen where you capture and present information to the user. You can construct your Activity screens by using either: XML layout files or hard-coded Java.

To begin our tour of Android user interfaces, we need a user interface to start with. In this chapter, we will begin with a simple Activity. We will:

  • Create a new Android project
  • Build the Activity layout in an application resource file
  • Tie the resource file to an Activity class
  • Dynamically populate the Activity with a series of multiple-choice questions

Developing our first example

For our first example, we're going to write a multiple-choice question and answer ...

Get Android User Interface Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.