title: ExpandableListView collapse when a rotation change occurs in Android
body: <p>In my <code>Activity</code> I have two <code>Gallery</code> items one <code>ExpandableListView</code> and for the children of the <code>ExpandableListView</code> I am having a <code>GridView</code>. Program runs perfectly. What I need is to handle orientation change. I know, when orientation change, activity will call <code>onDestroy</code> and after that <code>onCreate</code>. Because of that my <code>ExpandableListView</code> will collapsed even though the user has expanded before he has done an orientation change. </p>
  
  <p>I found a great concept for handling rotation changes in StackOverflow. This is the <a href="https://stackoverflow.com/questions/456211/activity-restart-on-rotation-android">link</a>. I have tried to implement that way but I have failed.</p>
  
  <p>What I need is to take the same interface that user has used before the orientation change even after the orientation change happen. Please guide me.</p>
  
  <p><strong>Update with the Manifest content</strong></p>
  
  <pre><code>&lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
  
      &lt;activity 
          android:name=".activities.HomeActivity"  
          android:configChanges="keyboardHidden|orientation|screenLayout" &gt;       
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" &gt;&lt;/action&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" &gt;&lt;/category&gt;
          &lt;/intent-filter&gt;            
      &lt;/activity&gt;
  
      &lt;activity 
          android:name=".activities.WebViewActivity"
          android:configChanges="keyboardHidden|orientation|screenLayout" &gt;          
      &lt;/activity&gt;
  
  &lt;/application&gt;
  </code></pre>