Code example for SharedPreferences.Editor: Saving app preferences

Methods: commit, putInt, putString