saving ArrayList in the bundle savedInstanceState
<p>the ArrayList is defined on class level.
these are my savedInstance methods:</p>

<pre><code>@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putStringArrayList("savedList", list);
}


@Override
protected void onRestoreInstanceState(Bundle savedInstanceState) {
    super.onRestoreInstanceState(savedInstanceState);
    list=savedInstanceState.getStringArrayList("savedList");
}
</code></pre>

<p>but still, when i change orientaion the ArrayList is blank</p>
