Reputation: 297
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
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