How to fix layout orientation to portrait and do not allow changing from portrait to landscape during run time?
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
before
setContentView(R.layout.main);