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 define mode in AndroidManifest.xml as follows,
android:screenOrientation="portrait" after the android:name=".activityName"
android:screenOrientation="portrait"
android:name=".activityName"
for example like this,
and from activity class you can use following code,
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);