Answer the question
In order to leave comments, you need to log in
Can't access Context?
Any call to Context returns null.
public Context context;
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
Answer the question
In order to leave comments, you need to log in
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);//if in activity.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question