Ilya Gazman
Ilya Gazman

Reputation: 32271

Android graphics.Camera not working when Target SDK 14

When using android.graphics.Camera, and set the manifest to target any SDK below 14, it works fine.

Once I set target SDK to 14, it stop working.

Why?

EDIT:

I am not getting any errors, it just nor working...

Upvotes: 0

Views: 343

Answers (1)

Romain Guy
Romain Guy

Reputation: 98511

Using targetSdk="14" automatically enables hardware accelerated rendering which does not support 3D transforms in all cases (at least not until 4.3.) How are you using the Camera object exactly? Clipping is what won't work well with 3D transforms and hardware acceleration.

Camera.applyToCanvas() will not work with a hardware accelerated Canvas. Instead, just call Canvas.translate(), or call Camera.getMatrix() and then Canvas.concat(Matrix).

Upvotes: 3

Related Questions