In my application I am displaying text from database in a textview. The text contains ‘\r\n’. So I replaced ‘\r\n’ with empty i.e with ‘ ‘.
My code:
String myString = listItem.gettextdata().replace("\r\n", " ");
But still the text is displaying with \r\n….where I went wrong? Please help me regarding this….
Thanks in advance
Is this a case where you have to escape the backslash character, i.e.