On item selection I am able to show the value of a column through toast. Now I want that value to get assigned to a variable. I tried with the commented line but get some junk information like:
android.widget.TextView{41f04c60 V.ED..}.
CODE:
public void onItemClick(AdapterView<?> parent,
View view, int position, long thislist) {
TextView selectedTitle = (TextView)view.findViewById(R.id.textView);
Toast.makeText(this, selectedTitle.getText() , Toast.LENGTH_LONG).show();
//selectedTitleID = String.valueOf((TextView)
view.findViewById(R.id.textView));
}