Answers to Self-Review Exercises

6.1

a) one of its subclasses.

b) MotionEvent.

c) SurfaceHolder.Callback.

d) floating-point.

e) res/raw.

6.2

a) True.

b) False. In Android, it’s important to minimize the amount of work you do in the GUI thread to ensure that the GUI remains responsive and does not display ANR (Application Not Responding) dialogs.

c) True.

d) True.

e) True.

f) True.

Get Android™ How to Program, 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.