PDA

View Full Version : Problems formatting text, can anyone help?



micke1977
07-28-2011, 07:27 AM
11690
Hi.
I have got a problem with text I import from a database to my android
app. The text has a symbol which I believe means that it is a formatting tag,
dont know the name of the symbol.

I have tried the method Html.fromHtml() to interpret the text and use the
formattings but the only thing happened was that the mentioned symbol did
disappear but the text wasnt formatted with for example "\n" etc.

That
thing I want to do is if not possible to use the formatting in the text ,when
the formatting symbol is shown I want to break the text to a new line, add the
"\n" in the text. Do anyone know how to make it work.

Thanks