Save state of activity when orientation changes android
<p>i have an aacplayer app, i want to save the state of my activity when orientation changes from portrait to landscape, the textviews doesnt appears 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 used also 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. Stream 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 of all my:</p>

<pre><code>@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
....
....
</code></pre>

<p>thank you very much.</p>
