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.
How to identify android phone flip 180 degrees
736 Views Asked by manitaz At
2
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