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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.