Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, putBoolean, putFloat, putInt, putLong, putString