Import android.hardware.Camera, not


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

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

Jay Jun


Agreed - I also noticed this.


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.