Skip to content Skip to sidebar Skip to footer

Camera Preview On Android - Strange On Samsung Galaxy S

In my activity I show the camera preview on a surfaceView. It works perfectly fine on Nexus One and HTC Desire, but on Samsung Galaxy S I see strange lines, weird proportions and e

Solution 1:

I found that Samsung seems to have problems with the parameters

p.set("orientation", "portrait");
p.set("rotation", 90);

After uncommenting those, it looks ok. I just need to rotate the image afterwards manually then.

Solution 2:

I'm probably stating the obvious, but since your program works on both the Nexus and Desire your code is probably fine. The Galaxy is a new phone--the issue is likely a bug in its own drivers, not your code. If that is the case, it could be anything: you may just need to wait/hope for a patch.

Post a Comment for "Camera Preview On Android - Strange On Samsung Galaxy S"