Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes

Are you able to change the strings set in the Strings.XML file once the code has been executed? Or should I just be using the setText() method to change it in the java code?

asked in CSC490_Spring202021 by (8 points)

1 Answer

+3 votes
Best answer

What are you meaning to do? In the java code you can use setText to set it to a new String resource in the Strings.xml file or in the java code you can setText to something that's not specifically in the Strings.xml file (just a standard string instead). I don't think the java code can change the actual strings in Strings.xml otherwise.

answered by (8 points)
selected by