Chapter 1. Developing a Simple Activity
In the world of Android, an
Activityis 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
Activityscreens 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
Activitylayout in an application resource file
- Tie the resource file to an
- Dynamically populate the
Activitywith 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 ...