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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -