Исправил и сделал тоже самое с массивами, всё равно не работает, при повороте экрана сбрасывает на самое начало. Что делаю не так?
protected void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putInt("flag", flag);
outState.putInt("correct", correct);
outState.putInt("marks", marks);
outState.putInt("wrong", wrong);
outState.putStringArray("answers", answers);
outState.putStringArray("opt", opt);
outState.putStringArray("questions", questions);
Log.d(LOG_TAG, "onSaveInstanceState");
}
protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState);
flag = savedInstanceState.getInt("flag");
correct = savedInstanceState.getInt("correct");
marks = savedInstanceState.getInt("marks");
wrong = savedInstanceState.getInt("wrong");
answers = savedInstanceState.getStringArray("anwers");
opt = savedInstanceState.getStringArray("opt");
questions = savedInstanceState.getStringArray("questions");
Log.d(LOG_TAG, "onRestoreInstanceState");
}