I would like to set a String resource to some default value, and call that from certain places in my application. If a user has logged in, I would like to display the user’s name there.
How can I dynamically modify a string resource to add the currently logged in user’s name?
Thanks.
You can’t modify resources dynamically. You can store the user’s name in persistent store (e.g., shared preferences) and update the display in code.