E
E
elah022016-12-28 23:06:31
Java
elah02, 2016-12-28 23:06:31

How to find out the orientation of an Android device?

I can’t find out the screen orientation in the code in any way, it is necessary that when the landscape orientation is written in the TextBox. android studio;
I tried everything, Google does not help. Help, I've been sitting on this issue for a month now

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Grichenko, 2016-12-28
@Kalobok

The first link on Google: Activity.getResources().getConfiguration().orientation and/or getWindowManager().getDefaultDisplay().getRotation():
stackoverflow.com/questions/3663665/how-can-i-get-.. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question