onListItemClick - Set an Action for a ListItem Short Click

onListItemClick was added in API Level 1
This method will be called when an item in the list is selected. (short-pressed)

1. Bind ArrayAdapter to ListView

2. In the MainActivity.java file, add the following imports.

import android.widget.ListView;
import android.view.View;

3. Then add the following method after the onCreate method.
      //l: The ListView where the click happened
      //v: The item that was selected with the ListView
      //position: The position of the selected item in the list
      //id: The row ID of the item that was selected

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
}

4. Add your action in the onListItemClick method. To test it, add a toast with the below message.

"ListView: " + l + " View: " + v + " List Position: " + position + " RowID: " + id

5. Compile and run! Next Recommended Article: Create an Intent to Open a New Activity/Screen Resources: 
http://developer.android.com/reference/android/app/ListActivity.html#onListItemClick(android.widget.ListView, android.view.View, int, long)