title: How should I be using .setAdapter here? /How do i get around not extending ListActivity?
body: <p>I have a class that is already extending TabActivity so i can't extend ListActivity.</p>
  
  <p>This hasn't be a problem until i needed to use this method:</p>
  
  <pre><code>private static int[] TO = { R.id.catItem, R.id.budgetAmount, };
  private void showBudgetOutcome(Cursor cursor) {
  //Set up data binding 
  SimpleCursorAdapter adapter = new SimpleCursorAdapter(
  this, R.layout.itemsforbudgetlist, cursor, FROM, TO);
  setListAdapter(adapter);
  
  }
  </code></pre>
  
  <p>Obviously setListAdapter is undefined. Now i found this snippet of code searching SO</p>
  
  <pre><code>mListView.setAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, COUNTRIES));
  </code></pre>
  
  <p>But i don't really understand the parameters. I tried altering it to suit me:</p>
  
  <pre><code>incomeView.setAdapter(new SimpleCursorAdapter&lt;String&gt;(this, R.layout.itemsforbudgetlist, adapter??));
  </code></pre>
  
  <p>I see that mListView is just the users ListView so i replaced that, and the layout resource defining how each item in the list looks i guess. But the rest i'm not sure about. I figure maybe i want a Simple/CursorAdapter since i'm working with sqlite (see my method)? but i have no idea what COUNTRIES is meant to be and not sure what data type i need (presumably string but what do i know). So if someone could clear things up for me and tell me how to use it with my method above i'd be really greatful! </p>