Androi Developer
Androi Developer

Reputation: 297

How to Support Orientation in android according to different screen sizes?

How to support Landscape and portrait for smartphone which is having screen size more-than 5-inches and only support Portrait mode which is having screen size Less-than or Equal 5-Inches in android.

Thanks, Android Developer.

Upvotes: 2

Views: 458

Answers (1)

Leonidos
Leonidos

Reputation: 10518

You should check screen size before showing every activity (in activity's onCreate method). If it is less that 5 inch set activity orientation to portrait manually.

Upvotes: 1

Related Questions