I have two screens and two xml-files for one activity. In my onCreate
method I call the fist one and handle some user input. After that I am changing my layout with
setContentView(R.layout.activity_quiz2);
and everything is fine and works as intended but when I run the application and turn my device after I switched the layouts. It will just switch back to the first layout and stay on that layout (every button and all works as well).
How can I prevent my screen from changing back my layouts when I turn my device?