Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+11 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 (1 point)

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 (1 point)
selected by
...