change background color on list item selection android
<p>hello frnds i want to change background color (white on selection) of list on selection of list in listview and if i select any other position then first selected row comes to its previous state and currently selected rows background become white.so how to do this</p>

<pre><code> public void onListItemClick(ListView parent, View v, int position, long id) { 
    super.onListItemClick(parent, v, position, id);

    //do some stuff here      

    Toast.makeText(getApplicationContext(), "You have selected"+(position+1)+"th item",  Toast.LENGTH_SHORT).show();
 }
</code></pre>
