Disable screen rotating on Android -


this question has answer here:

when press button, disable screen rotation on activities. how can that?

btw, phone can located in landscape or portrait position when user click button.

setrequestedorientation(activityinfo.screen_orientation_landscape); setrequestedorientation(activityinfo.screen_orientation_portrait);


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c# - Setting Server Bindings of IIS 6.0 Programmatically -

Python + DNS : Cannot get RRSIG records: No Answer -