title: Android ListView programmatic selection/highlight
body: <p>I have a simple listview and listadapter setup as follows:</p>
  
  <pre><code>listAdapter = new ArrayAdapter&lt;MyDomainObject&gt;(this, android.R.layout.simple_list_item_1, listOfDomainObjects);
  listView.setAdapter(listAdapter);
  </code></pre>
  
  <p>The user makes a selection on the list which takes them to another activity. From the new activity they can click their selection which returns them to the activity with the above list. I want to highlight the previous selection made. I currently find the matching list entry and call:</p>
  
  <pre><code>listView.setSelection(matchIndex);
  </code></pre>
  
  <p>This brings their previous selection to the top of the list. Is it possible to highlight (in that default orange) the previous selection. I have tried several approaches with no luck.</p>