Multiple activity instances problem
<p>In my application I have an activity class A that has a listview with a cursor adapter. 
From A I can go to the activity B, by pressing a button. From B I can go back to A by pressing a button (not by pressing the BACK button). This means that a new instance of the A activity is created. </p>

<p>From this point, if I press the BACK key, the current A activity is destroyed and B is popped. And if I press BACk again the initial A activity is popped. I hope it is clear.</p>

<p>My problem is that when the second A activity is destroyed, the database connection is reseted, in a static manner. So in the end, when the initial A activity is displayed, the listview will be empty.</p>

<p>My question is: should I try to have a single instance for the A activities, or shoud I change the database connection (to link it with the activity instance)?</p>

<p>Thanks a lot
Gratzi</p>
