책찾아보고 예제찾아보고 했는데...
public void onListItemClick(ListView list, View view, int position, long id) 

이부분이 전혀 실행이 안되네요...ㅋ 무슨 문제가 있는건가요??




public class BookMain extends Activity{
TextView selection;
BookParser bookRoute;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final EditText input_bus_number = (EditText)findViewById(R.id.input_bus_number);
Button search_button = (Button) findViewById(R.id.search_button);
bookRoute = new BookParser();
search_button.setOnClickListener(new OnClickListener() 
{
@Override
public void onClick(View v) 
{
if(v.getId() == R.id.search_button) 
{
String sourceUrlString = "url";
String mString = input_bus_number.getText().toString();
String encodeKeyword = "";
try 
{
encodeKeyword = URLEncoder.encode(mString, "UTF-8");
catch (UnsupportedEncodingException e) 
{
// TODO Auto-generated catch block
e.printStackTrace();
}
sourceUrlString += encodeKeyword;
List<Element> htmlContent = bookRoute.getHtmlToText(sourceUrlString);
bookRoute.seteatParsing(htmlContent);
getList();
}
}
});
}
public void getList() {
ArrayAdapter<String> Adapter;
Adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, bookRoute.gettitle());
ListView list = (ListView)findViewById(R.id.title);
list.setAdapter(Adapter);
}
public void onListItemClick(ListView list, View view, int position, long id) {
String mes;
mes = "Select Item = " + bookRoute.gettitle().get(position);
Toast.makeText(BookMain.this,mes,Toast.LENGTH_SHORT).show();
}
}