urbanairship-core/src/main/java/com/urbanairship/PreferenceDataStore.java
protected void init() {
        Cursor cursor = resolver.query(UrbanAirshipProvider.getPreferencesContentUri(context), null, null, null, null);
        if (cursor == null) {
            return;
        }

        int keyIndex = cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY);
        int valueIndex = cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE);

        while (cursor.moveToNext()) {
            String key = cursor.getString(keyIndex);
            String value = cursor.getString(valueIndex);
            Preference preference = new Preference(key, value);
            preference.registerObserver();

            preferences.put(key, preference);
        }

        cursor.close();
    }
/**
     * Initializes the preference data store.
     */
Initializes the preference data store.
Initializes the preference data store .
protected void init() {
        Cursor cursor = resolver.query(UrbanAirshipProvider.getPreferencesContentUri(context), null, null, null, null);
        if (cursor == null) {
            return;
        }
        int keyIndex = cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_KEY);
        int valueIndex = cursor.getColumnIndex(PreferencesDataManager.COLUMN_NAME_VALUE);
        while (cursor.moveToNext()) {
            String key = cursor.getString(keyIndex);
            String value = cursor.getString(valueIndex);
            Preference preference = new Preference(key, value);
            preference.registerObserver();
            preferences.put(key, preference);
        }
        cursor.close();
    }
protected void init ( ) { Cursor cursor = resolver . query ( UrbanAirshipProvider . getPreferencesContentUri ( context ) , null , null , null , null ) ; if ( cursor == null ) { return ; } int keyIndex = cursor . getColumnIndex ( PreferencesDataManager . COLUMN_NAME_KEY ) ; int valueIndex = cursor . getColumnIndex ( PreferencesDataManager . COLUMN_NAME_VALUE ) ; while ( cursor . moveToNext ( ) ) { String key = cursor . getString ( keyIndex ) ; String value = cursor . getString ( valueIndex ) ; Preference preference = new Preference ( key , value ) ; preference . registerObserver ( ) ; preferences . put ( key , preference ) ; } cursor . close ( ) ; }
Initializes the preference data store.
Initializes the preference data store .