title: Save state of activity when orientation changes android
body: <p>I have an aacplayer app and I want to save the state of my activity when orientation changes from portrait to landscape. The TextViews do not appear to be empty, I tried to freeze my textview using this:</p>
  
  <pre><code>android:freezesText="true"
  </code></pre>
  
  <p>my manifest:</p>
  
  <pre><code>android:configChanges="orientation"
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>@Override
      public void onConfigurationChanged(Configuration newConfig){
          super.onConfigurationChanged(newConfig);
          setContentView(R.layout.main2);
  </code></pre>
  
  <p>So when orientation changes to landscape I can see my layout-land main2.xml, that works but my textview goes out and appears empty. Streaming music works great. I can listen to it when orientation changes, but the text inside textviews are gone each time I change the orientation of my device.</p>
  
  <p>What should I do to fix this so I can save the state?</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  ....
  ....
  </code></pre>
  
  <p>Thank you very much.</p>