title: How to control landscape and portrait programmatically in android?
body: <p>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 portrait to landscape or in reverse the screen also changed.</p>
  
  <p>But my requirement is irrespective of changing the mode either portrait to landscape to Landscape to portrait, my application should run in portrait mode only.</p>