Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
App Basics
Your GeoQuiz application will consist of an activity and a layout:
-
An activity is an instance of Activity, a class in the Android SDK. An activity is an entry point into your application and is responsible for managing user interaction with a screen of information.
You write subclasses of Activity to implement the functionality your app requires. A simple application may need only one subclass; a complex application may have many.
GeoQuiz is a simple app and will start off with a single Activity subclass named MainActivity. MainActivity will manage the user interface, or UI, shown in Figure 1.1.
-
A layout defines a set of UI objects and the objects’ positions on the screen. A layout is made up of definitions ...
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