Change activity to portrait mode only.
Set Preview to portrait mode.
Call findBestPreviewSizeValue with portrait mode.
Change FramingRectInPreview to portrait.
Rotate preview data to portrait manually, because  setDisplayOrientation does not affect the order of byte array.