Faced such a problem that the application does not save the activation state when the screen orientation changes.
Googling this info, I added a couple of methods, as it was said, but nothing happens. I ask for help in solving this problem.
Here is the code:
public class ReaderActivity extends AppCompatActivity { TextView text; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_reader); text = (TextView) findViewById(R.id.tvMainText); try { openBook(getIntent().getStringExtra("PATH_TO_BOOK")); } catch (IOException exc){ System.out.println("IO Error!"); } } @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); } @Override protected void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); } } 
Bundlesave the list with the displayed data and, optionally, the state of the scroll. Further from the sameBundleyou restore all this. - post_zeew