title: Android ListView setSelection() does not seem to work
body: <p>I have a <code>ListActivity</code> that implements <code>onListItemClick()</code> and calls a <code>doSomething()</code> function of the class. The latter contains <code>l.setSelection(position)</code> where <code>l</code> is the <code>ListView</code> object.</p>
  
  <p>Now there is a <code>onClickListener()</code> listening for a button click that perfoms some actions and that too calls <code>doSomething()</code>.</p>
  
  <p>In the first case, the selected item get positioned appropriately, but in the latter, nothing happens.</p>
  
  <p>Any clues about this strange behaviour and how I might make it work?</p>