views:

44

answers:

1

One of the Preferences in my PreferenceActivity needs to get its values from a database. How do I add these values?

public class Settings extends PreferenceActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.preference_screen);

        ListPreference customPref = (ListPreference) findPreference("language");
        **ADD_CUSTOM_VALUES_HERE**????? 
    }