Task 1: Add a switch setting to an app

1.1 Create the project and add the xml directory and resource file

1.2 Add the XML preference and attributes for the setting

1.3 Add an activity for settings and a fragment for a specific setting

 

1.4 Connect the Settings menu item to the settings activity

1.5 Save the default values in shared preferences

1.6 Read the changed settings value from shared preferences

Task 2: Using the Settings Activity template

2.1 Explore the Settings Activity template

2.2 Add the Settings menu item and connect it to the activity

 

2.3 Customize the settings provided by the template

 

2.4 Add code to set the default values for the settings

2.5 Add code to read values for the settings