/ Published in: Java
Expand |
Embed | Plain Text
public class ListAct extends ListActivity { under oncreate-- this.setListAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,subs)); override onListItemClick-- super.onListItemClick(l, v, position, id); // Get the item that was clicked Toast.makeText(this, "You selected: " + keyword,toast.LENGTH_LONG) .show(); }
You need to login to post a comment.
