this is a part of my code :
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
TextView title_t = new TextView(this);
title_t.setText("");
String title = title_t.getText().toString();
switch(position){
case 0 : new AlertDialog.Builder(this).setTitle(title).setMessage("blah blah").setNeutralButton("close", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
}
}).show();
i want to replace the "" in the title_t.setText("") by a thing that can work. I just want to take the title from the listview which come from a resource. Thanks