First of all, please note I´ve been trying to search and existing answer to this question. I found this question, but is not helping.
I am simply trying to get strings from regular Java (domain) classes within an Android app, but I am not able to get them by using getResources()
.
Is this possible? (I´d like to avoid creating a new strings.xml
alike file in order to centralize all the strings within the app)
Thanks in advance.
EDIT: Am I forced to pass Context to every single Java class? Is there any way to avoiding it?