Android Manifest according screen size -


is possible have multiple manifest files different screen sizes.

im asking, because have app should phone , tablet optimized.

but want lock "phone version" in portrait, while "tablet version" should have portrait , landscape enabled.

so easiest way me be, let android handle orientation changes , set android:screenorientation="portrait" in manifest file.

is there way "layout-sw600dp" manifest or link value in manifest android:screenorientation="@string/portrait_landscape_enabled"

where "@string/portrait_landscape_enabled" set in values-sw600dp etc.

any suggestions?

you should set screen orientation in code depending on device application running on

if(device phone) {   setrequestedorientation(activityinfo.screen_orientation_portrait);   } 

this clue.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -