How do I know what orientation my android phone is?

How do I know what orientation my android phone is?
Answer
Check screen orientation in runtime.
Display getOrient = getWindowManager()
. getDefaultDisplay(); int orientation = getOrient. getOrientation();
 

Tìm kiếm

Back
Top