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
Leave a Reply