I would like to implement data storage using Preferecnce. But when trying to use the method
mSettings = getSharedPreferences(APP_PREFERENCES, Context.MODE_PRIVATE); Studio swears on getSharedPreferences(APP_PREFERENCES, Context.MODE_PRIVATE);
However, when using XML Activity, the studio calmly recognizes this method.
What can be done with this?