I use the getString()
to become String from string.xml.
In my class (non-activity) does not work:
- context.getResources().getString()
- getResources().getString()
- context.getResources().getString()
How do I get the String to this class?
public class myClass{
public String[] myInfo(String ID) {
String myString = getRessources().getString(R.string.myString);
};
}