Is the image coming out of the camera on the Thunderbolt & G2?

When I use camera.takePicture, this is what I get, ONLY from HTC G2 and Thunderbolt, it works fine on every other phone I tried (EVO, Nexus One, Samsung Galaxy S, Droid, Droid X, etc. d.). Does anyone have any idea? can I say that I am taking a picture, it just returns all scrambled ???

enter image description here

+7
source share
1 answer

I think this is a rotation problem.

First try rotating the bitmap (90, 180, 270 degrees) to get a normal image on HTC phones and localize the problem.

Secondly, you can try to use this (this is just an idea):

@TargetApi(9) public int getCameraOrientation(int paramInt1, int paramInt2) { int i = 90; if (isFrontFacing(paramInt1)); switch (paramInt2) { default: i = this.mInfo[paramInt1].orientation; case 0: case 180: case 90: case 270: } while (true) { return i; i = 270; continue; i = 270; } } public int getRenderOrientation(int paramInt1, int paramInt2) { return paramInt2; } public boolean shouldRenderMirrored(int paramInt) { return false; } 
0
source

All Articles