Java & Android & SharedPreferences & OOP
===

The function contains in the main Activity:

    public int checkScore(int scoreCurrent) {
             int maxscore = PreferenceConnector.readInteger(this, "maxscore", 0);
             if (scoreCurrent > maxscore) {
              PreferenceConnector.writeInteger(this, "maxscore",
                             scoreCurrent);
              maxscore = scoreCurrent;
             }
             return maxscore;
            }

The class PreferenceConnector simplifies work with SharedPreferences. Function checkScore() should be available in other classes, so need to do static. But i have error:

    Cannot use this in a static context

What to do and how to fix?