I'm just wondering what the benefits/overheads are for using @string
rather than hard coding strings within the actual Java code... For Example:
// To get the string resource:
getActivity.setTitle(getString(R.string.my_string));
Is this the best practice for Things like Actionbar titles, Dynamically created button text, ect... Or should I just do this:
// Hardcoded string
getActivity.setTitle("My String");
I know there will be a bit more overhead doing it the first way.. Just not sure what best practice is.