So I the code that follows to set text view text to a string however when I run the app nothing shows in the text view, can anyone explain why?
code:
public void onItemSelected(AdapterView<?> parent, View view,
int position, long id) {
Object poem = parent.getItemAtPosition(position);
if(poem.toString() == "Tam O Shanter"){
selectedPoem.setText(getString(R.string.tamO));
}
}