How to use string
created strings.xml
via code
example you have to call <string name="hello_world">Hello world!</string>
at some point in the code ( Activity ).
How to use string
created strings.xml
via code
example you have to call <string name="hello_world">Hello world!</string>
at some point in the code ( Activity ).
I recommend reading this topic:
But to refer to a String located in resources / values, it is:
String string = getString(R.string.hello);
String mensagem = getResources().getString(R.string.hello_world);