Here you can find the source of getPrefString(Context c, String key, String defValue)
public static String getPrefString(Context c, String key, String defValue)
//package com.java2s; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; public class Main { public static String getPrefString(Context c, String key, String defValue) {// www. j a va2 s .c om SharedPreferences sp = PreferenceManager .getDefaultSharedPreferences(c); return sp.getString(key, defValue); } }