I am using the method for when changing position layout change however when application start in landscape it starts the layout test_01 landscape mode being that its format is portrait how to fix this.
if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
setContentView(R.layout.activity_teste_02);
inicializarInterface();
} else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT){
setContentView(R.layout.activity_teste_01);
inicializarInterface();
}