I would like display for example this html code:
Hello World
This is a test of the URL &
String.xml can contains HTML entities, like so:
<span>
In your code: getResources().getString(R.string.hello_world);
will evaluate to ""
. You can use this HTML formatted text like this:
TextView helloWorld = (TextView)findViewById(R.id.hello_world);
helloWorld.setText(Html.fromHtml(getString(R.string.hello_world)));