Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, putBoolean, putLong, putString