//put this < this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); // > In your MainActivity.java