Yes, there is a workaround - if you (or you can) pass the View constructor (any derivative of the class) and assign it to a data member, you can access string resources from anywhere in your class:
String str_via_res = yourView.getContext().getString(R.string.str_via_res);
Otherwise, you will have to pass the context to each class that needs access to these string resources.
source share