I am trying to make a string array in Android... this works:
String titles[] = { "Matches", "Players" };
This does not:
String titles[] = { getString(R.string.matches), getString(R.string.players) };
How can I do what I'm trying to do?
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
ActivityorContextinstance available?