0
How to use the string
maid strings.xml
via code
example has how to call <string name="hello_world">Hello world!</string>
at some point in the code (Activity).
0
How to use the string
maid strings.xml
via code
example has how to call <string name="hello_world">Hello world!</string>
at some point in the code (Activity).
1
I recommend reading this topic:
http://developer.android.com/guide/topics/resources/string-resource.html
But to refer to a String located in Resources/values, this is how:
String string = getString(R.string.hello);
0
String mensagem = getResources().getString(R.string.hello_world);
http://developer.android.com/guide/topics/resources/string-resource.html
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.