title: Android design suggestion for reusing activity class & listview adapter instance
body: <p>In read through some of the design approaches for android and was wondering what would be the best approach to accomplish this ?</p>
  
  <ol>
  <li>Activity_Parent is launched &amp; its an instance of <strong><em>DataListActivity.java</em></strong></li>
  <li>It contains a list view and an corresponding adapter to render the view</li>
  <li>An AsyncTask is fired and the adapter instance is passed to the adapter to fetch list data</li>
  <li>Upon fetching the data, the list is prepared in doInBackground()</li>
  <li>onPostExecute() the list is set on the adapter and notifyDatasetChanged()</li>
  <li>Activity_Parent - <strong>Controller</strong></li>
  <li>ListView - <strong>View</strong></li>
  <li>Adapter - <strong>Model</strong></li>
  <li>AsyncTask - Data fetcher</li>
  <li>When user wants to see a filtered version of this list
  <ul>
  <li>Then another activity is launched from Activity_Parent and is called Activity_Child</li>
  <li>Its also instance of the <strong><em>DataListActivity.java</em></strong> </li>
  <li>Now I want to reuse the model(i.e, adapter &amp; data) for the listview within Activity_Child so that I dont have to re-fetch data over network.</li>
  </ul></li>
  </ol>
  
  <p>My suggestion </p>
  
  <ul>
  <li>StartActivityForResult() from parent and launch child </li>
  <li>Pass the adapter instance from the parent and child </li>
  <li>If adapter as reference of context then update it  </li>
  <li>Re-use the adapter to render the child activity's list view</li>
  </ul>
  
  <p>I would like to hear suggestions from you guys on this.
  Thanks in advance</p>