Can you change R.string values ​​programmatically in an Android program? I need to pull out some API information (e.g. battery status, battery percentage, android os version) and would like to keep the value of R.string. I know how to read it:
String helloValue= getResources().getString(R.string.hello);
I also looked at: Change the value of R.string programically? , but it seems that this is only due to a change in language, and in the end he did it differently. Can anyone lend a hand? I also looked here: http://developer.android.com/guide/topics/resources/string-resource.html and did not find anything to help: (
android android-2.3-gingerbread
Falcon165o Mar 06 2018-12-12T00: 00Z
source share