I've come across an issue with trying to append a settings preference string onto another string I have.

Currently I have:

```
public class MyApp extends Application {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    public static final String USER_LOGIN = "https://example.com";

@Override
public void onCreate(){
    super.onCreate();

    myFunction(USER_LOGIN);
}

```

What I'm trying to achieve this with:

```
public class MyApp extends Application {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
    public static final String USER_LOGIN = "https://" + preferences.getString(SettingsFragment.USER_SITE, "");

@Override
public void onCreate(){
    super.onCreate();

    myFunction(USER_LOGIN);
}

```

However, Android Studio is telling me "non-static field 'preferences' cannot be referenced from a static context". How would I be able to reference this field?