Import android.hardware.Camera, not android.graphics.Camera


#1

When you first use the Camera class in Listing 19.2, the book fails to mention that you need to import android.hardware.Camera, not android.graphics.Camera.

The latter is for generating matrices, e.g. for applying 3D transformations to Canvas objects.

Jay Jun


#2

Agreed - I also noticed this.


#3

Thanks for the note. I always seem to end up making this clarification in class, but it didn’t manage to make its way into the book.