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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -