Remove underline from a string in Java/Android

1.7k Views Asked by At

I'm getting text input from an editText and setting it as a notification .setTitle, but when it shows in the notification, it shows up with an underline on certain words. I had no idea why, but when I went to test it, the android keyboard puts underlines under words it has auto completed. So, what would be the best method to remove this?

1

There are 1 best solutions below

2
On BEST ANSWER

Use :

getText().toString() 

as described here