Saving Checkbox states
Use the below code to store and retrive the data in SharedPreference. Your save each check box state in SharedPreference //To get value from SharedPreference SharedPreferences preferences = getApplicationContext().getSharedPreferences(“PROJECT_NAME”, android.content.Context.MODE_PRIVATE); boolean value = preferences.getBoolean(“KEY”, false); String value = preferences.getString(“KEY”); //To Save value in SharedPreference SharedPreferences preferences = getApplicationContext().getSharedPreferences(“PROJECT_NAME”, android.content.Context.MODE_PRIVATE); SharedPreferences.Editor editor = preferences.edit(); editor.putString(“KEY”, value); … Read more