Shreyash Mahajan
Shreyash Mahajan

Reputation: 23596

Why My Camera preview shows Horizontal instead of the Vertical?

In My Android Camera Application if i fix the Screen to the landscape then In landscape mode it seems as it have to be seen. but if i fix it to the portrait then the Camera preview is seen to the horizontal. Why it is Happening ? and Whats the Sollution for it ??

Upvotes: 3

Views: 3404

Answers (1)

Reno
Reno

Reputation: 33792

 Camera.Parameters parameters = mCamera.getParameters();
 parameters.set("orientation", "portrait");
 mCamera.setParameters(parameters);

You can call startPreview() after this :)

Upvotes: 6

Related Questions