Android - Change value in strings.xml -
so inside strings.xml have string called change_bg , i'd change it's value according click events.
i know in order value use
changebg=getstring(r.string.change_bg);
but don't know how set value of r.string.change_bg
please let me know how.
thanks in advance! dvir
you can't change resource files during runtime. strings hard-coded
in string.xml
file , hence can't changed during runtime. instead of trying edit strings.xml
file, use sharedpreferences
store user's preferences if that's you're trying.
Comments
Post a Comment