I'm trying to assign a single char to a TextView in Android Java.
Using a string works:
textView.setText("X");
But using a char aborts at runtime:
textView.setText('X');
and:
char Key5 = 'X';
textView.setText(Key5);
Using a Character also aborts at runtime:
Character Key5 = 'X';
textView.setText(Key5);
Typecasting the Character to a string does work:
Character Key5 = 'X';
textView.setText(Key5.toString());
How do I assign a plain char variable to a TextView?