Code example for PreferenceGroup

Methods: addPreference

    return Arrays.asList(developers).contains(user);
  public boolean addPreference(Context context, PreferenceGroup group) {
    if (!isDeveloper(context)) return false;
    group.addPreference(new DeveloperListPreference(context));
    return true; 
  private static final String[] entryList = new String[]{
    "C2DM: Register", 
    "C2DM: Unregister", 
    "C2DM: Report", 
    "Stat: Reset", 
    "Stat: Lifetime", 
    "Stat: Donate paid", 
    "Stat: Donate warn", 
    "Stat: Donate limbo", 
Connect your IDE to all the code out there  Get Codota for Java