I am trying to capture a photo using the camera. The preview by default was in landscape mode which i could change it to portrait mode using
setCameraDis
Yes, I tried the way in the answer, it works for back camera, for front camera, it need to rotate 270 not 90. :)