In my strings.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="informations_links">Read these <b><a href=\"com.android.mobile://ReaderActivity\">general informations</a></b> and <a href=\"com.android.mobile://ReaderActivity\">this main note</a> from this box.</string>
</resources>
Then I use it like that:
mTextView.setText(Html.fromHtml(getString(R.string.informations_links)));
It doesn't work. My text is not formatted.
But if I write directly this and it works (it's the same string):
mTextView.setText(Html.fromHtml("Read these <b><a href=\"com.android.mobile://ReaderActivity\">general informations</a></b> and <a href=\"com.android.mobile://ReaderActivity\">this main note</a> from this box."));
So, what is the best writing in my strings.xml ?