Quotation marks not shown on the display
In my string XML file, I have a string like this:
<string name="infoHeader">random "text" here</string>
But it only displays as
random text here
on the phone’s display, that is, without quotes.
I read about it through Google and tried several HTML styles:
<string name="infoHeader">random "text" here</string>
And then used:
String hej = res.getString(R.string.infoHeader);
Spanned marked_up = Html.fromHtml(hej);
((TextView)findViewById(R.id.infoHeader)).setText(marked_up, BufferType.SPANNABLE);
But that still doesn't work. I tried another HTML code, for example <i>text</i>, and this works fine. What's wrong?