get Default Preference - Android android.content

Android examples for android.content:SharedPreferences

Description

get Default Preference

Demo Code

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

public class Main {

  public static SharedPreferences getDefaultPreference(Context context) {
    return PreferenceManager.getDefaultSharedPreferences(context);
  }// ww w  .j  a  v a 2  s  . com

}

Related Tutorials