when the orientation of the device has changed. • call onOrientationChanged(int) when the device orientation changes. • return degree 0-359 • (deg >= 225 && deg <= 315) considered as portrait photo
density. • getOrientation() - API 7 (deprecated) • getRotation() - API 8 • Returns the rotation of the screen from its "natural" orientation. • For example, if a device has a naturally tall screen, and the user has turned it on its side to go into a landscape orientation, the value returned here may be either Surface. ROTATION_90 or Surface.ROTATION_270 depending on the direction it was turned.