code: public Long loadPreferenceAsLong(String key, Long defaultValue) {
  		Long value = defaultValue;
  		if (hasPreference(key)) {
  			value = getSharedPreferences().getLong(key, 0L);
  		}
  		logLoad(key, value);
  		return value;
  
  	}
docs: Retrieve a long value from the preferences.
  
  @param key The name of the preference to retrieve
  @param defaultValue Value to return if this preference does not exist
  @return the preference value if it exists, or defaultValue.