I am creating an android application that I want to:
How would I declare this without using androids deprecated (small, normal, large, xlarge) screen sizes?
Store some Boolean in values folders. There can be multiple values folders like values-h720dp or values-w320dp. Then read those data in oncreated method of activity and then set proper orientation. To learn more read this