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; }
Max ukhanov
source share