I am trying to make a quiz app in which the questions are all displayed on the same activity. Everytime the screen is rotated, on create method is recalled and the quiz returns back to its first question, losing all the data regarding the other questions.

How can I prevent this ? 

Thanks.

\*ps: I don't want my application to work only at portrait or landscape mode but at both.