Appendix D

Univerter Architecture

Chapter 1 introduced Univerter, an app for performing unit conversions. Although lack of space in that chapter prevented a detailed exploration of this app’s architecture, Appendix D compensates by exploring Univerter’s source code, resource files, and its manifest.

Exploring the Source Code

Univerter’s source code is spread across four files: Category.java, Conversion.java, Converter.java, and Univerter.java. Each file begins with a package statement, which indicates that the file’s class is a member of the ca.tutortutor.univerter package. Every reference type that is part of an app must belong to a package.

NOTE: All reference types except for those being reused from another app must belong to the same package. ...

Get Android Recipes: A Problem-Solution Approach, Second Edition 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.