title: Save data and change orientation
body: <p>I have two activities and I use <code>android:configChanges="keyboardHidden|orientation|screenSize"</code></p>
  
  <pre><code> @Override
        public void onConfigurationChanged(Configuration newConfig) {
            super.onConfigurationChanged(newConfig);
          setContentView(R.layout.activity_main);
            if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
  
            } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {
  
            }
        }
  </code></pre>
  
  <p>One active use for portrait to landscape orientation of the second
  <strong>but when the orientation changes, activity is loaded and data is lost</strong></p>
  
  <p><strong>How can I save the data and change the activity orientation?</strong></p>