title: Displaying the listview items options on clicking the Clickable list
body: <p>I am trying to display a toast message for the user to display what Item he has selected. I have passed on the list as an intent from an another class and received it in the class whose code is as follows:</p>
  
  <pre><code>public class ListViewDelete extends ListActivity {
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      //setContentView(R.layout.activity_list_view_delete);
  
      final Intent intent = getIntent();
      final Bundle extras = getIntent().getExtras();    //gets the GWID
  
      final MySQLitehelper dbhelper = new MySQLitehelper(this);
      ArrayList&lt;String&gt; thelist = new ArrayList&lt;String&gt;(extras.getStringArrayList(SelectOptions.EXTRA_MESSAGE));
      setListAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,extras.getStringArrayList(SelectOptions.EXTRA_MESSAGE)));
  }       
  
  public void onListItemClick(ListView parent, View view, int position, long id)
  {
      Toast.makeText(this, "You have selected", Toast.LENGTH_LONG).show();
  }
  }
  </code></pre>
  
  <p>In the last onListItemClick, how do I customize that after the "You have selected", i can put the value from the arraylist item defined above ?</p>