18 Assets

So far, you have dealt with the main way Android gives you to ship images, XML, and other such non-Java things: the resources system. In this chapter, you will learn about another way of packaging content to ship with your app: assets.

This chapter also starts a new application, BeatBox (Figure 18.1). BeatBox is not a box for musical beats. It is a box that helps you beat people up. It does not help with the easy part, though: the part where you wave your arms around dangerously, bruising and hurting another human being. It helps with the hard part: yelling in a manner calculated to frighten your opponent into submission.

Figure 18.1  BeatBox at the end of this chapter

Why Assets, Not Resources

Get Android Programming: The Big Nerd Ranch Guide, 2nd 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.