I know it's good practice to use strings.xml file for all your hard coded string, especially if you're developer of a multi language app.
It's all good with layout.xml files, you can easily use like this: android:text="@string/Login_text".
But what about .java files?
For example, what it's the best practice to get the strings (from separate file like strings.xml) from this code:
progress = new ProgressDialog(MainActivity.this);
progress.setTitle("Some Title In Hebrew Language");
progress.setMessage("Some Message In Hebrew Language");
I'm using Android-Studio.
strings.xmlthe below answers will work