I need to identify is mobile display faced upside or downside. So how can do that? In the start phone display upside then it down side(display to earth and sky). not rotating the screen by fliping the screen.
I need to identify is mobile display faced upside or downside. So how can do that? In the start phone display upside then it down side(display to earth and sky). not rotating the screen by fliping the screen.
Use
getRotation
method :http://developer.android.com/reference/android/view/Display.html#getRotation
It will return either of 4 options :
ROTATION_0
,ROTATION_90
,ROTATION_180
,ROTATION_270