I have a TextView in an XML layout (in an Android application). This TextView displays the value of of a string in strings.xml. However, as my java code runs I want the value of that string to change each second for 4 consecutive seconds and I want the XML layout to show that change.
Is there a way to change the value of the string in strings.xml while the java code runs? If not is there an alternative way to change the text displayed by a textView in a layout as the java code runs?