What is the difference between getString() and getText()?

Viewed 10117

I tried using getString() to get a string from my string.xml
However. I just found the getText() method can fetch HTML tags from my resources!

Say:

<string name="mySTring"><b><i>Hello Guys</i></b></string>

it surprised me, because I had to use Html.fromHtml() to fetch the HTML tags - which is deprecated.

Which is the difference between the two methods?
Is there any advantage or disadvantage?

4 Answers
Related