How to Accsess Strings in List View
<pre><code>final String [] tmp =  new String[]{"Android", "Google};
ArrayAdapter spinnerArrayAdapter = new ArrayAdapter(getApplicationContext(),android.R.layout.simple_expandable_list_item_1,tmp);
final ListView lv = new ListView(getApplicationContext());
lv.setAdapter(spinnerArrayAdapter);
lv.setOnItemClickListener(new OnItemClickListener() {

 public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1,
   int arg2, long arg3) {
  int i = lv.getSelectedItemPosition();

   Toast toast = Toast.makeText(getApplicationContext(), arg0.toString(),Toast.LENGTH_SHORT);
         toast.show();


 }
});
</code></pre>

<p>I don't know how to get the right element by onItemClick....
the var i is allways -1</p>
