Is there a way to set the ID of a string in code, so I can call the string in other Activities by R.strings.codegenstring. I can’t predefine them in the string.xml since there will be a variable amount of code generated strings.
Is there a way to set the ID of a string in code, so
Share
No. But you can define a String as static
And access it from another class by: