title: Need help on tabs with Activities with Inheritance
body: <p>I am working on an Android project.  In my app,I have 3 tabs.  As the Activities I use have many things in common (e.g. ListView), I use inheritance as below: <img src="https://i.stack.imgur.com/Xr3Vj.png" alt="enter image description here"></p>
  
  <p>List a is generated by my SAXHandler and it creates a new list in startDocument ().</p>
  
  <p>I have a testcase of which the list in A_Activity has 7 items and B_Activity has 3 items.  When my app starts, I have no problem clicking on all the items shown in A_Activity.  After I click B_Activity and switch back to A_Activity, I also don't have any problem clicking on the first 3 items; however, if I click on the fourth items, I get </p>
  
  <pre><code>java.lang.IndexOutOfBoundsException: Invalid index 3, size is 3
  </code></pre>
  
  <p>If I increase the number of items on B_Activity to 4, I get the same exception with 3 replaced with 4.  So, I am certain that the cause of it is that when I jump back to A_Activity from B_Activity, the list in A_Activity is still referring to B_Activity's.</p>
  
  <p>Your advise will be highly appreciated.  Thank you!</p>