I have this code and I will like to make it multi language app. What I want is to use the Strings from the Strings.xml file under the directory of values.
Let's say I have a Toast
...
Toast.makeText(getApplicationContext(), "WELCOME", Toast.LENGTH_LONG).show();
But I don't want to put the welcome in the java but to get it from the xml file, but How?
Put getString(R.string.welcome)
instead of "WELCOME".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With