How to convert onOrientationChanged methods orientation
value to landscape and portrait to know the device orientation.
I have the following function that gets called every time when device orientations changes.
public void onOrientationChanged(int orientation)
the parameter orientation
is in between range 0 to 359.
So how can I get to know from these values if the device is in landscape mode or portrait mode?