I developed on application using android sdk 4.0 and I install that .apk file in my samsung tab. When I run that application it is working properly. If I change the tab portra
You can use this for landscape
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
To change to portrait mode, use the
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);