I am trying to set String to the TextView. But response which I getting is like
<?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">"Fortune Life"</string>
So it takes full string from xml to string but I want only double quoted content.i.e.,"Fortune Life"
What to do to parse xml string?
2
Answers
Then you can use string as R.string.WebsiteTitle or R.string.WebsiteURL.
To use string in TextView use android:text = "@string/WebsiteTitle" or android:text = "@string/WebsiteURL"
Well You Need to go to res > values > String.xml
you need to set your String in String.xml
In above image you need go to String xml