Anyone know how can I disable screen rotation in my Android app when screen is smaller than (for example) 480px? I'm building app using phonegap witch will be targeted to tablet devices, but it's also possible to run it on smart-phones. Unfortunately application is only displayed properly when app is displayed in landscape orientation...
Maybe an 'if' controlled
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
in the onCreate function?