4. Going for Your First Ride: Creating an Android User Interface

Life is like a riding a bicycle, you don’t fall off unless you stop pedaling.

Claude Pepper

In the last chapter you created a simple “Hello World” application to get familiar with the Android application development process. It is now time to begin coding the On Your Bike Android application. This application will act as a bicycle computer, which is a device usually installed on the handlebar of a bicycle, that helps you keep track of the length and time of your ride. In this chapter, by creating this application, you will learn more about the Android activity life cycle, how to create a simple user interface, and how to specify user preferences.

Refactoring Your Code

Often due ...

Get Learning Android™ Application Programming: A Hands-On Guide to Building Android Applications now with O’Reilly online learning.

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