Getting an error when inserting String value from R.string resource XML file:
public static final String TT = (String) getText(R.string.TT);
This is the error message:
Error: Cannot make a static reference to the non-static method getText(int) from the type Context
how can I solve it?
If you want to unleash your potential in this competitive field, please visit the Java course page for more information, where you can find the Java tutorials and Java frequently asked interview questions and answers as well.
This topic has been locked/unapproved. No replies allowed