Code example for Preferences

Methods: get

0
	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);
	} 
 
	public void clearAll() { 
		prefs.remove(SAVED_QUERY);
		prefs.remove(LOADED_FILE);
	} 
 
}