github: S06.01-LaunchSettingsActivity , ,
Settings for Sunshine:
- Unit Setting-
- Fahrenheit
- Celsius
- Location Setting
* Reference: Udacity Nanodegree Program- Become an Android Developer *
github: S06.01-LaunchSettingsActivity , ,
* Reference: Udacity Nanodegree Program- Become an Android Developer *
github:
* The below material is from Udacity Nanodegree Program- Become an Android Developer *
To limit the acceptable values between 0 (non inclusive) and 3 (inclusive) we opted to use a PreferenceChangeListener – this is not the same as a SharedPreferenceChangeListener. The differences are:
Enter an input for the size multiplier but not a number (ex: aaa), that will cause our app crashes.
github:
resource: EditTextPreference
* Reference: Udacity Nanodegree Program- Become an Android Developer *
github:
github: T06.05_PreferenceChangeListener
* Reference: Udacity Nanodegree Program- Become an Android Developer *
github: T06.04_exercise_UseResources
To read values from SharedPreferences:
github: T06.03-Exercise-ReadingFromSharedPreferences
To read the value of the CheckBox from them SharedPreference and update the UI view based on that value.