Code example for Preferences

Methods: get

0
	public void saveLoadedFile(final String absolutePath) {
		prefs.put(LOADED_FILE, absolutePath);
	} 
 
	public boolean hasLoadedFile() { 
		String file = prefs.get(LOADED_FILE, null);
		return file != null;
	} 
 
	public String getLoadedFile() {
		return prefs.get(LOADED_FILE, null);
	} 
 
	public boolean hasQuery() { 
		String query = prefs.get(SAVED_QUERY, null);
		return query != null;
	} 
 
	public String getQuery() {
		return prefs.get(SAVED_QUERY, null);
	}