A Preference instance is a hash map holding different values. It is stored alongside your application (SharedPreferences on Android, LocalStorage on GWT, on the desktop a Java Preferences file in a ".prefs" directory will be created, and on iOS an NSMutableDictionary will be written to the given file). CAUTION: On the desktop platform, all libgdx applications share the same ".prefs" directory. To avoid collisions use specific names like "com.myname.game1.settings" instead of "settings"
Changes to a preferences instance will be cached in memory until {@link #flush()} is invoked.
Use {@link Application#getPreferences(String)} to look up a specific preferences instance. Note that on several backends thepreferences name will be used as the filename, so make sure the name is valid for a filename.
@author mzechner